Skip to content

Commit c63762b

Browse files
committed
Work around broken distutils on OSX
1 parent 3e00f96 commit c63762b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/build-aux/m4/ax_python_devel.m4

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ EOD`
274274
PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
275275
conf = distutils.sysconfig.get_config_var; \
276276
print (conf('LINKFORSHARED'))"`
277+
if echo "$PYTHON_EXTRA_LIBS" | grep " Python.framework" >/dev/null; then
278+
# On OSX we can hit https://bugs.python.org/issue3588
279+
PYTHON_EXTRA_LIBS=`$PYTHON-config --ldflags`
280+
fi
277281
fi
278282
AC_MSG_RESULT([$PYTHON_EXTRA_LIBS])
279283

0 commit comments

Comments
 (0)