diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2022-02-10 13:44:05 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2022-02-10 13:53:56 -0500 |
commit | 3a5034b5e03dfa92586c3e10c375a763ef5c2eee (patch) | |
tree | 2181782380c8a2bbae209f079d9331b1b4b39c9c | |
parent | f90b9998b1e302ddf219ad92d86bb0c21fdf4753 (diff) | |
download | postgresql-3a5034b5e03dfa92586c3e10c375a763ef5c2eee.tar.gz |
Use gendef instead of pexports for building windows .def files
Modern msys systems lack pexports but have gendef instead, so use that.
Discussion: https://postgr.es/m/3ccde7a9-e4f9-e194-30e0-0936e6ad68ba@dunslane.net
Backpatch to release 9.4 to enable building with perl on older branches.
Before that pexports is not used for plperl.
-rw-r--r-- | src/pl/plperl/GNUmakefile | 2 | ||||
-rw-r--r-- | src/pl/plpython/Makefile | 2 | ||||
-rw-r--r-- | src/pl/tcl/Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 0846e60cd8..95bfb192f7 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -48,7 +48,7 @@ lib$(perlwithver).a: $(perlwithver).def dlltool --dllname $(perlwithver).dll --def $(perlwithver).def --output-lib lib$(perlwithver).a $(perlwithver).def: $(PERLDLL) - pexports $^ > $@ + gendef - $^ > $@ endif # win32 diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 39cfb654fb..8864a30ac4 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -54,7 +54,7 @@ libpython${pytverstr}.a: python${pytverstr}.def dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a python${pytverstr}.def: - pexports $(PYTHONDLL) > $@ + gendef - $(PYTHONDLL) > $@ endif # win32 diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 24803de790..ab08e66e94 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -45,7 +45,7 @@ lib$(tclwithver).a: $(tclwithver).def dlltool --dllname $(tclwithver).dll --def $(tclwithver).def --output-lib lib$(tclwithver).a $(tclwithver).def: $(TCLDLL) - pexports $^ > $@ + gendef - $^ > $@ endif # win32 |