1
0
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:
Tom Lane
2004-10-10 19:07:55 +00:00
parent ea12f8e6a3
commit 86a39d5a19
3 changed files with 15 additions and 30 deletions

View File

@ -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.