[FFmpeg-cvslog] configure: add --optflags option

Mans Rullgard git at videolan.org
Thu Jun 23 05:11:57 CEST 2011


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Sun Jun 19 18:47:06 2011 +0100| [9cd7b8549b71bcfced2062596fd9eecba092aeb1] | committer: Mans Rullgard

configure: add --optflags option

This allows overriding the default optimisation flags selected by
configure.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9cd7b8549b71bcfced2062596fd9eecba092aeb1
---

 configure |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 6f15605..4032e68 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



More information about the ffmpeg-cvslog mailing list