Skip to content

Commit 3a5034b

Browse files
committed
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.
1 parent f90b999 commit 3a5034b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/pl/plperl/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ lib$(perlwithver).a: $(perlwithver).def
4848
dlltool --dllname $(perlwithver).dll --def $(perlwithver).def --output-lib lib$(perlwithver).a
4949

5050
$(perlwithver).def: $(PERLDLL)
51-
pexports $^ > $@
51+
gendef - $^ > $@
5252

5353
endif # win32
5454

src/pl/plpython/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ libpython${pytverstr}.a: python${pytverstr}.def
5454
dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a
5555

5656
python${pytverstr}.def:
57-
pexports $(PYTHONDLL) > $@
57+
gendef - $(PYTHONDLL) > $@
5858

5959
endif # win32
6060

src/pl/tcl/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ lib$(tclwithver).a: $(tclwithver).def
4545
dlltool --dllname $(tclwithver).dll --def $(tclwithver).def --output-lib lib$(tclwithver).a
4646

4747
$(tclwithver).def: $(TCLDLL)
48-
pexports $^ > $@
48+
gendef - $^ > $@
4949

5050
endif # win32
5151

0 commit comments

Comments
 (0)