diff options
author | Diego Biurrun <diego@biurrun.de> | 2007-04-14 09:52:30 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-04-14 09:52:30 +0000 |
commit | 26c1b3bee90aff139e4d3a4cfea9dce8be975d3c (patch) | |
tree | 2967c3ac1d2b283d89e68a867802a30821f246bf /configure | |
parent | 8d3dc6ba58f45a622cdf5aca2d5463de788d90cd (diff) | |
download | ffmpeg-26c1b3bee90aff139e4d3a4cfea9dce8be975d3c.tar.gz |
Simplify Darwin gcc flags setting.
Originally committed as revision 8730 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 4 insertions, 15 deletions
@@ -1282,21 +1282,10 @@ if test $targetos = darwin; then if test -n "`$cc -v 2>&1 | grep xlc`"; then add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto" else - gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`" - case "$gcc_version" in - *[34].*) - add_cflags "-no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare" - if disabled shared; then - needmdynamicnopic="yes" - fi - ;; - *) - add_cflags "-no-cpp-precomp -pipe" - if disabled shared; then - needmdynamicnopic="yes" - fi - ;; - esac + add_cflags "-no-cpp-precomp -pipe" + check_cflags "-force_cpusubtype_ALL" + check_cflags "-Wno-sign-compare" + disabled shared && needmdynamicnopic="yes" fi fi |