pgsql: On OS X, link libpython normally, ignoring the "framework" frame - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: On OS X, link libpython normally, ignoring the "framework" frame
Date
Msg-id E1WqV9A-0001x6-Fa@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4f725bbc4e6938b4c8ce960d59791f4675f4a3d1

Modified Files
--------------
src/pl/plpython/Makefile |    4 +---
1 file changed, 1 insertion(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: On OS X, link libpython normally, ignoring the "framework" frame
Next
From: Tom Lane
Date:
Subject: pgsql: On OS X, link libpython normally, ignoring the "framework" frame