]> 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:51:49 +0000 (13:51 -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 9b1c5141014f3d145b4e46988166fc5343f4cae3..2b098bedbc2dd578948b6518cac32e52fb5daf33 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 667a74469ec8782f8d2c992b9f26bbd047e7df68..0c6d6a6a56d11e9189d71cd05b6dde225b68ba71 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 8ee4c3ff156a92635faa04458b1a10240f7a5149..0b5d3f620a237c92c1d0120a3d3a347d5c97ce7f 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