summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-08-03 11:46:55 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:15:01 +0200
commit2f1d60f422b007fc1cbada601fc8c9b7a47001e2 (patch)
treee8275236c550fefe84279165349834d95efe2820 /configure
parentbab0811d56e183a071fc4098a616bad50dd3dc2b (diff)
downloadmpv-2f1d60f422b007fc1cbada601fc8c9b7a47001e2.tar.bz2
mpv-2f1d60f422b007fc1cbada601fc8c9b7a47001e2.tar.xz
configure: avoid unsupported options with clang on Darwin/PPC
Suppress unsupported compiler options when building with clang on Darwin/PPC. patch by Rowan James, rowanj@phere.net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31910 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index c7f9b163df..b838c64203 100755
--- a/configure
+++ b/configure
@@ -1409,7 +1409,10 @@ if netbsd || dragonfly ; then
fi
if darwin; then
- extra_cflags="-mdynamic-no-pic -falign-loops=16 -shared-libgcc $extra_cflags"
+ extra_cflags="-mdynamic-no-pic $extra_cflags"
+ if test "$(basename $_cc)" != "clang" ; then
+ extra_cflags="-falign-loops=16 -shared-libgcc $extra_cflags"
+ fi
_timer=timer-darwin.c
fi