mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Cosmetic improvements in plpython's make rule for libpython import library.
This build technique is remarkably ugly, but that doesn't mean it has to be unreadable too. Be a bit more liberal with the vertical whitespace, and give the .def file a proper dependency, just in case.
This commit is contained in:
parent
4d894b41cd
commit
a7983e989d
@ -61,14 +61,19 @@ endif
|
|||||||
# which are not compatible with mingw gcc. Therefore we need to build a
|
# which are not compatible with mingw gcc. Therefore we need to build a
|
||||||
# new import library to link with.
|
# new import library to link with.
|
||||||
ifeq ($(PORTNAME), win32)
|
ifeq ($(PORTNAME), win32)
|
||||||
|
|
||||||
pytverstr=$(subst .,,${python_version})
|
pytverstr=$(subst .,,${python_version})
|
||||||
|
PYTHONDLL=$(subst \,/,$(WINDIR))/system32/python${pytverstr}.dll
|
||||||
|
|
||||||
OBJS += libpython${pytverstr}.a
|
OBJS += libpython${pytverstr}.a
|
||||||
|
|
||||||
libpython${pytverstr}.a: python${pytverstr}.def
|
libpython${pytverstr}.a: python${pytverstr}.def
|
||||||
dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a
|
dlltool --dllname python${pytverstr}.dll --def python${pytverstr}.def --output-lib libpython${pytverstr}.a
|
||||||
WD=$(subst \,/,$(WINDIR))
|
|
||||||
python${pytverstr}.def:
|
python${pytverstr}.def: $(PYTHONDLL)
|
||||||
pexports $(WD)/system32/python${pytverstr}.dll > python${pytverstr}.def
|
pexports $^ > $@
|
||||||
endif
|
|
||||||
|
endif # win32
|
||||||
|
|
||||||
|
|
||||||
SHLIB_LINK = $(python_libspec) $(python_additional_libs) $(filter -lintl,$(LIBS))
|
SHLIB_LINK = $(python_libspec) $(python_additional_libs) $(filter -lintl,$(LIBS))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user