handle --enable-small same way as other CONFIG_* options (almost)
Originally committed as revision 9509 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
ab2cfc59a6
commit
bd2216e487
14
configure
vendored
14
configure
vendored
@ -602,6 +602,7 @@ CONFIG_LIST='
|
|||||||
powerpc_perf
|
powerpc_perf
|
||||||
pp
|
pp
|
||||||
protocols
|
protocols
|
||||||
|
small
|
||||||
swscaler
|
swscaler
|
||||||
vhook
|
vhook
|
||||||
v4l
|
v4l
|
||||||
@ -947,8 +948,6 @@ for opt do
|
|||||||
;;
|
;;
|
||||||
--disable-opts) optimize="no"
|
--disable-opts) optimize="no"
|
||||||
;;
|
;;
|
||||||
--enable-small) optimize="small"
|
|
||||||
;;
|
|
||||||
--enable-sunmlib) mlib="yes"
|
--enable-sunmlib) mlib="yes"
|
||||||
;;
|
;;
|
||||||
--disable-strip) dostrip="no"
|
--disable-strip) dostrip="no"
|
||||||
@ -1731,10 +1730,10 @@ enabled extra_warnings && check_cflags -Winline
|
|||||||
check_ldflags -Wl,--warn-common
|
check_ldflags -Wl,--warn-common
|
||||||
check_ldflags $LDLATEFLAGS
|
check_ldflags $LDLATEFLAGS
|
||||||
|
|
||||||
# not all compilers support -Os
|
if enabled small; then
|
||||||
test "$optimize" = "small" && check_cflags -Os
|
check_cflags -Os # not all compilers support -Os
|
||||||
|
optimize="small"
|
||||||
if enabled optimize; then
|
elif enabled optimize; then
|
||||||
if test -n "`$cc -v 2>&1 | grep xlc`"; then
|
if test -n "`$cc -v 2>&1 | grep xlc`"; then
|
||||||
add_cflags "-O5"
|
add_cflags "-O5"
|
||||||
add_ldflags "-O5"
|
add_ldflags "-O5"
|
||||||
@ -1964,9 +1963,8 @@ fi
|
|||||||
|
|
||||||
echo "#define restrict $_restrict" >> $TMPH
|
echo "#define restrict $_restrict" >> $TMPH
|
||||||
|
|
||||||
if test "$optimize" = "small"; then
|
if enabled small; then
|
||||||
echo "#define always_inline" >> $TMPH
|
echo "#define always_inline" >> $TMPH
|
||||||
echo "#define CONFIG_SMALL 1" >> $TMPH
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "SRC_PATH=\"$source_path\"" >> config.mak
|
echo "SRC_PATH=\"$source_path\"" >> config.mak
|
||||||
|
Loading…
Reference in New Issue
Block a user