]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #773: Non-standard Python location build failure with pyunbound.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 7 Jun 2016 08:18:20 +0000 (08:18 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 7 Jun 2016 08:18:20 +0000 (08:18 +0000)
git-svn-id: file:///svn/unbound/trunk@3763 be551aaa-1e26-0410-a405-d3ace91eadb9

acx_python.m4
configure
doc/Changelog

index 254ff20962802afc8aeeb8b3a655479f52005acf..4e83d7764bcd9b0f367412460b2b61429cc6a3ef 100644 (file)
@@ -54,7 +54,7 @@ $ac_distutils_result])
         AC_MSG_CHECKING([for Python library path])
         if test -z "$PYTHON_LDFLAGS"; then
                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
-                        print(get_config_var('BLDLIBRARY'));"`
+                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
         fi
         AC_MSG_RESULT([$PYTHON_LDFLAGS])
         AC_SUBST([PYTHON_LDFLAGS])
index 12da31a2340a7d6451ffe9df1fdb6d1b83c8ac1a..a1666a83bffed2f5e507fa6d6af5e3731e49f378 100755 (executable)
--- a/configure
+++ b/configure
@@ -16714,7 +16714,7 @@ $as_echo "$PYTHON_CPPFLAGS" >&6; }
 $as_echo_n "checking for Python library path... " >&6; }
         if test -z "$PYTHON_LDFLAGS"; then
                 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
-                        print(get_config_var('BLDLIBRARY'));"`
+                        print('-L'+get_config_var('LIBDIR')+' -L'+get_config_var('LIBDEST')+' '+get_config_var('BLDLIBRARY'));"`
         fi
         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
 $as_echo "$PYTHON_LDFLAGS" >&6; }
index 5279952286f3873d53e09b8e897291be6936e544..6601571479285b052385fc6e46c749feeec6dea5 100644 (file)
@@ -1,3 +1,6 @@
+7 June 2016: Wouter
+       - Fix #773: Non-standard Python location build failure with pyunbound.
+
 6 June 2016: Wouter
        - Better help text from -h (from Ray Griffith).
        - access-control-tag config directive.