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:44:05 +0000 (13:44 -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 919d46453f6afde36a6dc472eee64f0606c9e3c5..a2e6410f5333bb1a41fa41d3f5b110f238a1df23 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 9e95285af8994920e896ea1191bd89929925a067..a83ae8865c784e0514776465f42dcd5f6a364c6a 100644 (file)
@@ -69,7 +69,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 1e7740da3fba198d8f7be08090a847c2c36b2d07..25e65189b60be8f61b19bd340d9d0c742fa5723d 100644 (file)
@@ -46,7 +46,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