Use gendef instead of pexports for building windows .def files
authorAndrew Dunstan <[email protected]>
Thu, 10 Feb 2022 18:44:05 +0000 (13:44 -0500)
committerAndrew Dunstan <[email protected]>
Thu, 10 Feb 2022 18:52:05 +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 b8971d3cc8fd4e163b70318112b86a20e478bf50..3235db9eecc7e26543c106523fbf6594c3489d29 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