]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Use gendef instead of pexports for building windows .def files
authorAndrew Dunstan <andrew@dunslane.net>
Thu, 10 Feb 2022 18:44:05 +0000 (13:44 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Thu, 10 Feb 2022 18:52:37 +0000 (13:52 -0500)
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.

src/pl/plperl/GNUmakefile
src/pl/plpython/Makefile
src/pl/tcl/Makefile

index 0846e60cd81f9414f5832c4fad0fa5eb9ea09085..95bfb192f72cb87c78ec6e493087b0a631be5bae 100644 (file)
@@ -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
 
index 7680d49cb6997d5533a4f265e841e4f01d7d3a1a..2a6de159cd842c4956fb1554d0081399ce567bf3 100644 (file)
@@ -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
 
index 25082ec504897672c18bd578d65b6ed7a882a7c5..620b6fcdb9d0e9b52c16c0c6dd8b9eb112ecaf4b 100644 (file)
@@ -44,7 +44,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