Merged revisions 80187 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r80187 | ronald.oussoren | 2010-04-18 19:59:37 +0200 (Sun, 18 Apr 2010) | 6 lines Add the OSX universal binary related options to CFLAGS instead of BASECFLAGS. This fixes issue 8366 and is needed due to changes introduced in the fix for issue 1628484. ........
This commit is contained in:
parent
b27ee20b9c
commit
666028b681
|
@ -3834,7 +3834,7 @@ else
|
||||||
{ echo "$as_me:$LINENO: result: no" >&5
|
{ echo "$as_me:$LINENO: result: no" >&5
|
||||||
echo "${ECHO_T}no" >&6; }
|
echo "${ECHO_T}no" >&6; }
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -4693,6 +4693,22 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing" >&6; }
|
||||||
Darwin*)
|
Darwin*)
|
||||||
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
|
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
|
||||||
# used to be here, but non-Apple gcc doesn't accept them.
|
# used to be here, but non-Apple gcc doesn't accept them.
|
||||||
|
if test "${CC}" = gcc
|
||||||
|
then
|
||||||
|
{ echo "$as_me:$LINENO: checking which compiler should be used" >&5
|
||||||
|
echo $ECHO_N "checking which compiler should be used... $ECHO_C" >&6; }
|
||||||
|
case "${UNIVERSALSDK}" in
|
||||||
|
*/MacOSX10.4u.sdk)
|
||||||
|
# Build using 10.4 SDK, force usage of gcc when the
|
||||||
|
# compiler is gcc, otherwise the user will get very
|
||||||
|
# confusing error messages when building on OSX 10.6
|
||||||
|
CC=gcc-4.0
|
||||||
|
CPP=cpp-4.0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
{ echo "$as_me:$LINENO: result: $CC" >&5
|
||||||
|
echo "${ECHO_T}$CC" >&6; }
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "${enable_universalsdk}"; then
|
if test "${enable_universalsdk}"; then
|
||||||
|
@ -4729,10 +4745,12 @@ echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|int
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
|
CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
|
||||||
tgt=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
|
if test "${UNIVERSALSDK}" != "/"
|
||||||
if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
|
then
|
||||||
CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
|
CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
|
||||||
|
LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
|
||||||
|
CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5421,7 +5439,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -5442,7 +5460,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_header_stdc=no
|
ac_cv_header_stdc=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -6542,7 +6560,7 @@ _ACEOF
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
|
||||||
echo "${ECHO_T}$was_it_defined" >&6; }
|
echo "${ECHO_T}$was_it_defined" >&6; }
|
||||||
|
@ -7072,7 +7090,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
ac_cv_type_uid_t=no
|
ac_cv_type_uid_t=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
|
||||||
|
@ -15775,7 +15793,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
else
|
else
|
||||||
unistd_defines_pthreads=no
|
unistd_defines_pthreads=no
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
|
||||||
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
|
||||||
|
@ -17073,7 +17091,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
$EGREP "yes" >/dev/null 2>&1; then
|
$EGREP "yes" >/dev/null 2>&1; then
|
||||||
ipv6type=$i
|
ipv6type=$i
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
kame)
|
kame)
|
||||||
|
@ -17096,7 +17114,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
ipv6trylibc=yes
|
ipv6trylibc=yes
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
linux-glibc)
|
linux-glibc)
|
||||||
|
@ -17117,7 +17135,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6type=$i;
|
ipv6type=$i;
|
||||||
ipv6trylibc=yes
|
ipv6trylibc=yes
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
linux-inet6)
|
linux-inet6)
|
||||||
|
@ -17155,7 +17173,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6lib=inet6;
|
ipv6lib=inet6;
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
v6d)
|
v6d)
|
||||||
|
@ -17178,7 +17196,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6libdir=/usr/local/v6/lib;
|
ipv6libdir=/usr/local/v6/lib;
|
||||||
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
zeta)
|
zeta)
|
||||||
|
@ -17200,7 +17218,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||||
ipv6lib=inet6;
|
ipv6lib=inet6;
|
||||||
ipv6libdir=/usr/local/v6/lib
|
ipv6libdir=/usr/local/v6/lib
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -25715,7 +25733,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
cat >conftest.$ac_ext <<_ACEOF
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
/* confdefs.h. */
|
/* confdefs.h. */
|
||||||
|
@ -25734,7 +25752,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -26004,7 +26022,7 @@ cat >>confdefs.h <<\_ACEOF
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
rm -f conftest*
|
rm -f -r conftest*
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
24
configure.in
24
configure.in
|
@ -908,6 +908,20 @@ yes)
|
||||||
Darwin*)
|
Darwin*)
|
||||||
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
|
# -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
|
||||||
# used to be here, but non-Apple gcc doesn't accept them.
|
# used to be here, but non-Apple gcc doesn't accept them.
|
||||||
|
if test "${CC}" = gcc
|
||||||
|
then
|
||||||
|
AC_MSG_CHECKING(which compiler should be used)
|
||||||
|
case "${UNIVERSALSDK}" in
|
||||||
|
*/MacOSX10.4u.sdk)
|
||||||
|
# Build using 10.4 SDK, force usage of gcc when the
|
||||||
|
# compiler is gcc, otherwise the user will get very
|
||||||
|
# confusing error messages when building on OSX 10.6
|
||||||
|
CC=gcc-4.0
|
||||||
|
CPP=cpp-4.0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT($CC)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "${enable_universalsdk}"; then
|
if test "${enable_universalsdk}"; then
|
||||||
|
@ -942,10 +956,12 @@ yes)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"
|
CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
|
||||||
tgt=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
|
if test "${UNIVERSALSDK}" != "/"
|
||||||
if test "${UNIVERSALSDK}" != "/" -a "${tgt}" '>' '10.4' ; then
|
then
|
||||||
CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
|
CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
|
||||||
|
LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
|
||||||
|
CPPFLAGSFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue