Skip to content

Commit ea09a75

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/[email protected] Backpatch to release 9.4 to enable building with perl on older branches. Before that pexports is not used for plperl.
1 parent 0da92dc commit ea09a75

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
@@ -69,7 +69,7 @@ libpython${pytverstr}.a: python${pytverstr}.def
6969
dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a
7070

7171
python${pytverstr}.def:
72-
pexports $(PYTHONDLL) > $@
72+
gendef - $(PYTHONDLL) > $@
7373

7474
endif # win32
7575

src/pl/tcl/Makefile

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

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

5151
endif # win32
5252

0 commit comments

Comments
 (0)