summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure b/configure
index 4ae51590a7..ff67625e25 100755
--- a/configure
+++ b/configure
@@ -5817,8 +5817,11 @@ To do so, execute 'CFLAGS= ./configure <options>'
EOF
fi
if darwin ; then
- # use gnu style cpp on Darwin
- CFLAGS="$CFLAGS -no-cpp-precomp -DSYS_DARWIN -Wl,-bind_at_load"
+ CFLAGS="$CFLAGS -DSYS_DARWIN"
+ if [ "$_cc_major" = 3 ] && [ "$_cc_minor" -lt 1 ]; then
+ CFLAGS="$CFLAGS -no-cpp-precomp"
+ fi
+
# libavcodec (from ffmpeg) requires CONFIG_DARWIN to enable AltiVec on Darwin/MacOSX
test "$_altivec" = yes && CFLAGS="$CFLAGS -DCONFIG_DARWIN"
fi