Commit ec6f90d6 authored by michaelni's avatar michaelni

optionally optimize for size (libavcodec.a is >30% smaller), no i didnt test the speed ...


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1726 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 472e514c
...@@ -85,6 +85,7 @@ LIBSUF=".a" ...@@ -85,6 +85,7 @@ LIBSUF=".a"
SLIBPREF="lib" SLIBPREF="lib"
SLIBSUF=".so" SLIBSUF=".so"
risky="yes" risky="yes"
small="no"
# OS specific # OS specific
targetos=`uname -s` targetos=`uname -s`
...@@ -307,6 +308,8 @@ for opt do ...@@ -307,6 +308,8 @@ for opt do
;; ;;
--disable-risky) risky="no" --disable-risky) risky="no"
;; ;;
--enable-small) small="yes"
;;
esac esac
done done
...@@ -570,6 +573,11 @@ if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then ...@@ -570,6 +573,11 @@ if test "x$targetos" != "xBeOS" && test "$os2" != "yes"; then
fi fi
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 if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
cat << EOF cat << EOF
...@@ -614,6 +622,7 @@ echo " --disable-mpegaudio-hp faster (but less accurate)" ...@@ -614,6 +622,7 @@ echo " --disable-mpegaudio-hp faster (but less accurate)"
echo " mpegaudio decoding [default=no]" echo " mpegaudio decoding [default=no]"
echo " --disable-ffserver disable ffserver build" echo " --disable-ffserver disable ffserver build"
echo " --disable-risky disables patent encumbered codecs" echo " --disable-risky disables patent encumbered codecs"
echo " --enable-small optimize for size instead of speed"
echo "" echo ""
echo "NOTE: The object files are build at the place where configure is launched" echo "NOTE: The object files are build at the place where configure is launched"
exit 1 exit 1
...@@ -645,6 +654,7 @@ echo "pp support $pp" ...@@ -645,6 +654,7 @@ echo "pp support $pp"
echo "shared pp $shared_pp" echo "shared pp $shared_pp"
echo "Video hooking $vhook" echo "Video hooking $vhook"
echo "risky / patent encumbered codecs $risky" echo "risky / patent encumbered codecs $risky"
echo "optimize for size $small"
if test "$vhook" = "yes" ; then if test "$vhook" = "yes" ; then
echo "Imlib2 support $imlib2" echo "Imlib2 support $imlib2"
......
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