Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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:53:56 +0000 (13:53 -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 39cfb654fb2108441883aadfcdcc18a232ff639e..8864a30ac431eb18c59b6db01b260fa5a6dbde83 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 24803de79082bf1363dd8691a558329db2c7ca9d..ab08e66e947cab0371a55e7aae5295db928db4b0 100644 (file)
@@ -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