Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae41bb4

Browse files
committed
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 theSDK-level files, which means that linking to it might fail depending onwhether Xcode thinks you've selected a specific SDK version. According totheir Tech Note 2328, they've basically deprecated the framework method oflinking to libpython and are telling people to link to the shared librarynormally. (I'm pretty sure this is in direct contradiction to the advicethey were giving a few years ago, but whatever.) Testing says that thisapproach works fine at least as far back as OS X 10.4.11, so let's justrip out the framework special case entirely. We do still need a specialcase to decide that OS X provides a shared library at all, unfortunately(I wonder why the distutils check doesn't work ...). But this is stillless of a special case than before, so it's fine.Back-patch to all supported branches, since we'll doubtless be hearingabout this more as more people update to recent Xcode.
1 parentfd78544 commitae41bb4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/pl/plpython/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ python_includespec := $(subst \,/,$(python_includespec))
2121
overridepython_libspec =
2222
endif
2323

24-
# Darwin (OS X)has its own ideas about how to do this.
24+
# Darwin (OS X)does supply a .dylib, but the above test doesn't match that.
2525
ifeq ($(PORTNAME), darwin)
2626
shared_libpython = yes
27-
overridepython_libspec = -framework Python
28-
overridepython_additional_libs =
2927
endif
3028

3129
# If we don't have a shared library and the platform doesn't allow it

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp