Commit 26c1b3be authored by Diego Biurrun's avatar Diego Biurrun

Simplify Darwin gcc flags setting.

Originally committed as revision 8730 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8d3dc6ba
...@@ -1282,21 +1282,10 @@ if test $targetos = darwin; then ...@@ -1282,21 +1282,10 @@ if test $targetos = darwin; then
if test -n "`$cc -v 2>&1 | grep xlc`"; then if test -n "`$cc -v 2>&1 | grep xlc`"; then
add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto" add_cflags "-qpdf2 -qlanglvl=extc99 -qmaxmem=-1 -qarch=auto -qtune=auto"
else else
gcc_version="`$cc -v 2>&1 | grep version | cut -d ' ' -f3-`" add_cflags "-no-cpp-precomp -pipe"
case "$gcc_version" in check_cflags "-force_cpusubtype_ALL"
*[34].*) check_cflags "-Wno-sign-compare"
add_cflags "-no-cpp-precomp -pipe -force_cpusubtype_ALL -Wno-sign-compare" disabled shared && needmdynamicnopic="yes"
if disabled shared; then
needmdynamicnopic="yes"
fi
;;
*)
add_cflags "-no-cpp-precomp -pipe"
if disabled shared; then
needmdynamicnopic="yes"
fi
;;
esac
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