aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-05-30 18:18:24 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-05-30 18:18:24 -0400
commita784a39c49cbecf4b69324db96ce6bd119e967e8 (patch)
tree69e0b7d8f321af2543453c6dc27e085baef2f057 /src
parent3606754da9928de4669df7a29d9500d7da5693b9 (diff)
downloadpostgresql-a784a39c49cbecf4b69324db96ce6bd119e967e8.tar.gz
postgresql-a784a39c49cbecf4b69324db96ce6bd119e967e8.zip
On OS X, link libpython normally, ignoring the "framework" framework.
As of Xcode 5.0, Apple isn't including the Python framework as part of the SDK-level files, which means that linking to it might fail depending on whether Xcode thinks you've selected a specific SDK version. According to their Tech Note 2328, they've basically deprecated the framework method of linking to libpython and are telling people to link to the shared library normally. (I'm pretty sure this is in direct contradiction to the advice they were giving a few years ago, but whatever.) Testing says that this approach works fine at least as far back as OS X 10.4.11, so let's just rip out the framework special case entirely. We do still need a special case to decide that OS X provides a shared library at all, unfortunately (I wonder why the distutils check doesn't work ...). But this is still less of a special case than before, so it's fine. Back-patch to all supported branches, since we'll doubtless be hearing about this more as more people update to recent Xcode.
Diffstat (limited to 'src')
-rw-r--r--src/pl/plpython/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile
index df07fc2ced0..632d05b6afc 100644
--- a/src/pl/plpython/Makefile
+++ b/src/pl/plpython/Makefile
@@ -21,11 +21,9 @@ python_includespec := $(subst \,/,$(python_includespec))
override python_libspec =
endif
-# Darwin (OS X) has its own ideas about how to do this.
+# Darwin (OS X) does supply a .dylib, but the above test doesn't match that.
ifeq ($(PORTNAME), darwin)
shared_libpython = yes
-override python_libspec = -framework Python
-override python_additional_libs =
endif
# If we don't have a shared library and the platform doesn't allow it