Commit 974eb5ea authored by Ronald Oussoren's avatar Ronald Oussoren

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.
parent 287128aa
#! /bin/sh #! /bin/sh
# From configure.in Revision: 79652 . # From configure.in Revision: 79902 .
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7. # Generated by GNU Autoconf 2.61 for python 2.7.
# #
...@@ -4816,11 +4816,12 @@ echo "$as_me: error: proper usage is --with-universal-arch=32-bit|64-bit|all|int ...@@ -4816,11 +4816,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} ${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}" CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
CPPFLAGS="-isysroot ${UNIVERSALSDK}" LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
fi fi
fi fi
......
...@@ -1052,11 +1052,12 @@ yes) ...@@ -1052,11 +1052,12 @@ yes)
fi fi
BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}" CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${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}" CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
CPPFLAGS="-isysroot ${UNIVERSALSDK}" LDFLAGS="-isysroot ${UNIVERSALSDK} ${LDFLAGS}"
CFLAGS="-isysroot ${UNIVERSALSDK} ${CFLAGS}"
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment