]> granicus.if.org Git - python/commitdiff
fix freebsd linking #7705
authorBenjamin Peterson <benjamin@python.org>
Sun, 14 Mar 2010 14:24:31 +0000 (14:24 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 14 Mar 2010 14:24:31 +0000 (14:24 +0000)
Misc/NEWS
configure
configure.in

index 4ce035fe9a20c6d26c291a76ec7d015f0a013fd5..60e6d8f1de51fcd56bde81b4546f80ddb2a7b35b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -60,6 +60,11 @@ Tools/Demos
   measures the number of UDP packets processed per second depending on the
   number of background CPU-bound Python threads.
 
+Build
+-----
+
+- Issue #7705: Fix linking on FreeBSD.
+
 
 What's New in Python 2.7 alpha 4?
 =================================
index 0e95b85d8868bf5a7e675580be4b9b973864f5ba..eaf822a5b7c5f6889b6ce54059fbf10b124e9ae1 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 78817 .
+# From configure.in Revision: 78819 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.61 for python 2.7.
 #
@@ -14860,7 +14860,7 @@ then
        FreeBSD*)
                if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
                then
-                       LDSHARED="$CC -shared ${LDFLAGS}"
+                       LDSHARED="$(CC) -shared ${LDFLAGS}"
                else
                        LDSHARED="ld -Bshareable ${LDFLAGS}"
                fi;;
index 0fadd75ce8a2edd2b4191e7af925608ab458d480..20e54fca0562bbcff13072e0417f3c02c147f99c 100644 (file)
@@ -1829,7 +1829,7 @@ then
        FreeBSD*)
                if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
                then
-                       LDSHARED="$CC -shared ${LDFLAGS}"
+                       LDSHARED="$(CC) -shared ${LDFLAGS}"
                else
                        LDSHARED="ld -Bshareable ${LDFLAGS}"
                fi;;