Skip to content

Commit 622ab6a

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 f3653d7 commit 622ab6a

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
@@ -44,7 +44,7 @@ lib$(tclwithver).a: $(tclwithver).def
4444
dlltool --dllname $(tclwithver).dll --def $(tclwithver).def --output-lib lib$(tclwithver).a
4545

4646
$(tclwithver).def: $(TCLDLL)
47-
pexports $^ > $@
47+
gendef - $^ > $@
4848

4949
endif # win32
5050

0 commit comments

Comments
 (0)