pkgsrc/www/ap2-wsgi/patches/patch-aa

36 lines
1.3 KiB
Text

$NetBSD: patch-aa,v 1.1 2008/09/12 05:41:59 epg Exp $
http://code.google.com/p/modwsgi/issues/detail?id=107
--- configure.orig 2007-12-21 19:51:22.000000000 -0800
+++ configure
@@ -1784,9 +1784,10 @@ PYTHONFRAMEWORK=`${PYTHON} -c 'from dist
print sysconfig.get_config_var("PYTHONFRAMEWORK")'`
if test "${PYTHONFRAMEWORKDIR}" = "no-framework"; then
- LDFLAGS=`${PYTHON} -c 'import distutils.sysconfig; \
+ py_LDFLAGS=`${PYTHON} -c 'import distutils.sysconfig; \
print "-L" + distutils.sysconfig.get_python_lib(plat_specific=1, \
standard_lib=1) +"/config"'`
+ LDFLAGS="${LDFLAGS} ${py_LDFLAGS}"
LDLIBS1="-lpython${PYTHON_VERSION}"
LDLIBS2=`${PYTHON} -c 'from distutils import sysconfig; \
@@ -1802,7 +1803,7 @@ else
print sysconfig.get_config_var(\"LINKFORSHARED\").replace( \
\"${STRING}\", '')"`
- LDFLAGS="${LDFLAGS1} ${LDFLAGS2}"
+ LDFLAGS="${LDFLAGS} ${LDFLAGS1} ${LDFLAGS2}"
LDLIBS=`${PYTHON} -c 'from distutils import sysconfig; \
print sysconfig.get_config_var("LIBS")'`
@@ -1816,7 +1817,7 @@ if test -x /usr/bin/lipo; then
CFLAGS="${CFLAGS} -Wc,'-arch ${ARCH}'"
LDFLAGS3="${LDFLAGS3} -arch ${ARCH}"
done
- LDFLAGS="${LDFLAGS3} ${LDFLAGS}"
+ LDFLAGS="${LDFLAGS} ${LDFLAGS3} ${LDFLAGS}"
fi