postgres.git / summary / log / commit / refs

commit    c76164ea02aa3aebeff59d7d633a6107cb753772
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Thu Feb 10 18:44:05 2022 +0000
First released in: 15.0, 10.21, 11.16, 12.11, 13.7, 14.3

    Use gendef instead of pexports for building windows .def files
    
    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 | 2 +- src/pl/plpython/Makefile | 2 +- src/pl/tcl/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 97a94c727ef..02f015f339c 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -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 diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 03de9af0b3e..957b44a2519 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -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 diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a2791bb..5a68ea815c1 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -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 [parent: 927e235aa0f6]