summaryrefslogtreecommitdiff
path: root/www/ap2-wsgi/patches/patch-aa
blob: 16194ac28ebdd8ec9e2282e801fc4db971adbc93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$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