aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-06-19 18:47:06 +0100
committerMans Rullgard <mans@mansr.com>2011-06-22 22:59:46 +0100
commit9cd7b8549b71bcfced2062596fd9eecba092aeb1 (patch)
treed759b8f6184c1fa2ae682afb491c3e4fe70500e8 /configure
parentf87b03b50d0b4632f95da5b5d6772ec8f2a7f16f (diff)
downloadffmpeg-9cd7b8549b71bcfced2062596fd9eecba092aeb1.tar.gz
configure: add --optflags option
This allows overriding the default optimisation flags selected by configure. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 6f1560574f..4032e687ad 100755
--- a/configure
+++ b/configure
@@ -237,6 +237,7 @@ Advanced options (experts only):
--malloc-prefix=PFX prefix malloc and related names with PFX
--enable-sram allow use of on-chip SRAM
--disable-symver disable symbol versioning
+ --optflags override optimization-related compiler flags
Developer options (useful when working on Libav itself):
--disable-debug disable debugging symbols
@@ -1181,6 +1182,7 @@ CMDLINE_SET="
logfile
malloc_prefix
nm
+ optflags
pkg_config
samples
sysinclude
@@ -3004,7 +3006,9 @@ void ff_foo(void) {}
EOF
fi
-if enabled small; then
+if [ -n "$optflags" ]; then
+ add_cflags $optflags
+elif enabled small; then
add_cflags $size_cflags
elif enabled optimizations; then
add_cflags $speed_cflags