summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-31 22:15:49 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:46 +0200
commitd1a3dd5cad0bc29e147e8f7508be28b0a3d840d1 (patch)
tree76a703915f92ed1e32cf819d78854865cd3d4eed /configure
parentda1135a96dc6d8ee8daa246019bbdfd784422011 (diff)
downloadmpv-d1a3dd5cad0bc29e147e8f7508be28b0a3d840d1.tar.bz2
mpv-d1a3dd5cad0bc29e147e8f7508be28b0a3d840d1.tar.xz
configure: Default to -O2 optimization level for the clang compiler
patch by Rowan James, rowanj phere net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31880 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 5f9135fff1..386c0cdfde 100755
--- a/configure
+++ b/configure
@@ -2425,6 +2425,8 @@ elif test -z "$CFLAGS" ; then
CFLAGS="-O2 $_march $_mcpu $_pipe -fomit-frame-pointer -wd167 -wd556 -wd144"
elif test "$cc_vendor" = "sun" ; then
CFLAGS="-O2 $_march $_mcpu $_pipe -xc99 -xregs=frameptr"
+ elif test "$cc_vendor" = "clang"; then
+ CFLAGS="-O2 $_march $_pipe"
elif test "$cc_vendor" != "gnu" ; then
CFLAGS="-O2 $_march $_mcpu $_pipe"
else