Skip to content

Commit eec152d

Browse files
committed
Issue python#16848: python-config now returns proper --ldflags values for OS X
framework builds.
1 parent 49e4dfe commit eec152d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,9 @@ Build
923923

924924
- Issue #17161: make install now also installs a python2 and python man page.
925925

926+
- Issue #16848: python-config now returns proper --ldflags values for OS X
927+
framework builds.
928+
926929
Tools/Demos
927930
-----------
928931

Misc/python-config.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ for opt in opt_flags:
5151
if opt == '--ldflags':
5252
if not getvar('Py_ENABLE_SHARED'):
5353
libs.insert(0, '-L' + getvar('LIBPL'))
54-
libs.extend(getvar('LINKFORSHARED').split())
54+
if not getvar('PYTHONFRAMEWORK'):
55+
libs.extend(getvar('LINKFORSHARED').split())
5556
print ' '.join(libs)
5657

0 commit comments

Comments
 (0)