fix freebsd linking #7705

This commit is contained in:
Benjamin Peterson 2010-03-14 14:24:31 +00:00
parent 8122bdd8bd
commit 11d932372b
3 changed files with 8 additions and 3 deletions

View File

@ -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?
=================================

4
configure vendored
View File

@ -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;;

View 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;;