diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-04-02 16:06:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-04-02 16:06:17 +0000 |
commit | 553a6284975857c507b99f6b3b34d00e31dbb130 (patch) | |
tree | 0a5558d1f6eb105ff276848626fbc72209e79889 /configure | |
parent | 2c19981a93c5c6dd499cc9880a3ecc8a4bbc4753 (diff) | |
download | ffmpeg-553a6284975857c507b99f6b3b34d00e31dbb130.tar.gz |
optionally optimize for size (libavcodec.a is >30% smaller), no i didnt test the speed ...
Originally committed as revision 1726 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -85,6 +85,7 @@ LIBSUF=".a" SLIBPREF="lib" SLIBSUF=".so" risky="yes" +small="no" # OS specific targetos=`uname -s` @@ -307,6 +308,8 @@ for opt do ;; --disable-risky) risky="no" ;; + --enable-small) small="yes" + ;; esac done @@ -570,6 +573,11 @@ if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then fi fi +if test "$small" == "yes"; then +# CFLAGS=${CFALGS//-O3/-Os} + CFLAGS="$CFLAGS -Os" +fi + if test x"$1" = x"-h" -o x"$1" = x"--help" ; then cat << EOF @@ -614,6 +622,7 @@ echo " --disable-mpegaudio-hp faster (but less accurate)" echo " mpegaudio decoding [default=no]" echo " --disable-ffserver disable ffserver build" echo " --disable-risky disables patent encumbered codecs" +echo " --enable-small optimize for size instead of speed" echo "" echo "NOTE: The object files are build at the place where configure is launched" exit 1 @@ -645,6 +654,7 @@ echo "pp support $pp" echo "shared pp $shared_pp" echo "Video hooking $vhook" echo "risky / patent encumbered codecs $risky" +echo "optimize for size $small" if test "$vhook" = "yes" ; then echo "Imlib2 support $imlib2" |