summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pl/plpython/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile
index 5ed72d155f8..569a981119d 100644
--- a/src/pl/plpython/Makefile
+++ b/src/pl/plpython/Makefile
@@ -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.