Skip to content

Commit c76164e

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 927e235 commit c76164e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/pl/plperl/GNUmakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ lib$(perlwithver).a: $(perlwithver).def
5757
dlltool --dllname $(perlwithver).dll --def $(perlwithver).def --output-lib lib$(perlwithver).a
5858

5959
$(perlwithver).def: $(PERLDLL)
60-
pexports $^ > $@
60+
gendef - $^ > $@
6161

6262
endif # win32
6363

src/pl/plpython/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ libpython${pytverstr}.a: python${pytverstr}.def
7474
dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a
7575

7676
python${pytverstr}.def:
77-
pexports $(PYTHONDLL) > $@
77+
gendef - $(PYTHONDLL) > $@
7878

7979
endif # win32
8080

src/pl/tcl/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ lib$(tclwithver).a: $(tclwithver).def
6161
dlltool --dllname $(tclwithver).dll --def $(tclwithver).def --output-lib lib$(tclwithver).a
6262

6363
$(tclwithver).def: $(TCLDLL)
64-
pexports $^ > $@
64+
gendef - $^ > $@
6565

6666
endif # win32
6767

0 commit comments

Comments
 (0)