1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-17 06:41:09 +03:00

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.
This commit is contained in:
Andrew Dunstan
2022-02-10 13:44:05 -05:00
parent 3a32e53e1f
commit 64dd648072
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,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