Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 26b5d53

Browse files
committed
Persuade plpython to build on OS X.
1 parent b120485 commit 26b5d53

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pl/plpython/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.13 2004/01/21 19:04:11 tgl Exp $
1+
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.14 2004/09/24 20:08:42 tgl Exp $
22

33
subdir = src/pl/plpython
44
top_builddir = ../../..
@@ -12,6 +12,12 @@ ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*))
1212
shared_libpython = yes
1313
endif
1414

15+
# Darwin (OS X) has its own ideas about how to do this.
16+
ifeq ($(PORTNAME), darwin)
17+
shared_libpython = yes
18+
override python_libspec := -framework Python
19+
endif
20+
1521
# If we don't have a shared library and the platform doesn't allow it
1622
# to work without, we have to skip it.
1723
ifneq (,$(findstring yes, $(shared_libpython)$(allow_nonpic_in_shlib)))

0 commit comments

Comments
 (0)