diff options
author | Graham.Dumpleton <devnull@localhost> | 2008-10-25 09:44:15 +0000 |
---|---|---|
committer | Graham.Dumpleton <devnull@localhost> | 2008-10-25 09:44:15 +0000 |
commit | e7e7683fdff0fa02a3d085287be53ade2d12f17c (patch) | |
tree | 92f84b775396862e9f958d808a6ca53305055b81 | |
parent | 0961a240b67cc88844c222fca86830f2109f2318 (diff) | |
download | mod_wsgi-e7e7683fdff0fa02a3d085287be53ade2d12f17c.tar.gz |
Link in Python SYSLIBS as well. This will ensure that -l library linked for
platforms where httpd no longer linking it. See issue #115.
-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"` |