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:56:55 +0000 (13:56 -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 97a94c727ef31d0f88c86285f21e48af99cb27ea..02f015f339c6e351e4d4c5812654e9a735fc818d 100644 (file)
@@ -57,7 +57,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 03de9af0b3e140eb7e29dc87975b666d432cbf1f..957b44a25193ec684f0c9baadc7c7dad3128fb69 100644 (file)
@@ -74,7 +74,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 2ab2a2791bb20d130126531fe4f8b5c185c6c95c..5a68ea815c1404963c30acc2cd59113d2fc68d28 100644 (file)
@@ -61,7 +61,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