mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Un-break plpython build for non-Windows platforms.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.15 2004/10/06 09:20:41 momjian Exp $
|
||||
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.16 2004/10/10 19:07:55 tgl Exp $
|
||||
|
||||
subdir = src/pl/plpython
|
||||
top_builddir = ../../..
|
||||
@ -12,10 +12,12 @@ ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*))
|
||||
shared_libpython = yes
|
||||
endif
|
||||
|
||||
# Convert backslashed paths to normal slashes
|
||||
# Windows needs to convert backslashed paths to normal slashes,
|
||||
# and we have to remove -lpython from libspec since we are building our own
|
||||
ifeq ($(PORTNAME), win32)
|
||||
shared_libpython = yes
|
||||
python_includespec := $(subst \,/,$(python_includespec))
|
||||
python_libspec := $(subst -lpython$(python_version),,$(python_libspec))
|
||||
endif
|
||||
|
||||
# Darwin (OS X) has its own ideas about how to do this.
|
||||
|
Reference in New Issue
Block a user