diff options
-rwxr-xr-x | configure | 5 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1402,6 +1402,9 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-framework"; then LDLIBS2=`${PYTHON} -c 'from sys import stdout; \ from distutils import sysconfig; \ stdout.write(sysconfig.get_config_var("LIBS"))'` + LDLIBS3=`${PYTHON} -c 'from sys import stdout; \ + from distutils import sysconfig; \ + stdout.write(sysconfig.get_config_var("SYSLIBS"))'` else LDFLAGS1="-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}" @@ -1428,7 +1431,7 @@ if test -x /usr/bin/lipo; then fi LDFLAGS="${LDFLAGS} ${LDFLAGS1} ${LDFLAGS2} ${LDFLAGS3}" -LDLIBS="${LDLIBS} ${LDLIBS1} ${LDLIBS2}" +LDLIBS="${LDLIBS} ${LDLIBS1} ${LDLIBS2} ${LDLIBS3}" LDFLAGS=`echo ${LDFLAGS} | sed -e "s/\([^ ][^ ]*\)/-Wl,\1/g"` LDLIBS=`echo ${LDLIBS} | sed -e "s/\([^ ][^ ]*\)/-Wl,\1/g"` diff --git a/configure.ac b/configure.ac index 9b17f29..b63a864 100644 --- a/configure.ac +++ b/configure.ac @@ -94,6 +94,9 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-framework"; then LDLIBS2=`${PYTHON} -c 'from sys import stdout; \ from distutils import sysconfig; \ stdout.write(sysconfig.get_config_var("LIBS"))'` + LDLIBS3=`${PYTHON} -c 'from sys import stdout; \ + from distutils import sysconfig; \ + stdout.write(sysconfig.get_config_var("SYSLIBS"))'` else LDFLAGS1="-F${PYTHONFRAMEWORKPREFIX} -framework ${PYTHONFRAMEWORK}" @@ -120,7 +123,7 @@ if test -x /usr/bin/lipo; then fi LDFLAGS="${LDFLAGS} ${LDFLAGS1} ${LDFLAGS2} ${LDFLAGS3}" -LDLIBS="${LDLIBS} ${LDLIBS1} ${LDLIBS2}" +LDLIBS="${LDLIBS} ${LDLIBS1} ${LDLIBS2} ${LDLIBS3}" LDFLAGS=`echo ${LDFLAGS} | sed -e "s/\([[^ ]][[^ ]]*\)/-Wl,\1/g"` LDLIBS=`echo ${LDLIBS} | sed -e "s/\([[^ ]][[^ ]]*\)/-Wl,\1/g"` |