Commit 9cd7b854 authored by Mans Rullgard's avatar Mans Rullgard

configure: add --optflags option

This allows overriding the default optimisation flags selected by
configure.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent f87b03b5
...@@ -237,6 +237,7 @@ Advanced options (experts only): ...@@ -237,6 +237,7 @@ Advanced options (experts only):
--malloc-prefix=PFX prefix malloc and related names with PFX --malloc-prefix=PFX prefix malloc and related names with PFX
--enable-sram allow use of on-chip SRAM --enable-sram allow use of on-chip SRAM
--disable-symver disable symbol versioning --disable-symver disable symbol versioning
--optflags override optimization-related compiler flags
Developer options (useful when working on Libav itself): Developer options (useful when working on Libav itself):
--disable-debug disable debugging symbols --disable-debug disable debugging symbols
...@@ -1181,6 +1182,7 @@ CMDLINE_SET=" ...@@ -1181,6 +1182,7 @@ CMDLINE_SET="
logfile logfile
malloc_prefix malloc_prefix
nm nm
optflags
pkg_config pkg_config
samples samples
sysinclude sysinclude
...@@ -3004,7 +3006,9 @@ void ff_foo(void) {} ...@@ -3004,7 +3006,9 @@ void ff_foo(void) {}
EOF EOF
fi fi
if enabled small; then if [ -n "$optflags" ]; then
add_cflags $optflags
elif enabled small; then
add_cflags $size_cflags add_cflags $size_cflags
elif enabled optimizations; then elif enabled optimizations; then
add_cflags $speed_cflags add_cflags $speed_cflags
......
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