[FFmpeg-cvslog] configure: Do not unconditionally add -Wall to host CFLAGS.
Diego Biurrun
git at videolan.org
Sat May 21 05:36:10 CEST 2011
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon May 16 16:16:14 2011 +0200| [0a6db2a25a70e3e8fb414e361719152a9e7e9766] | committer: Diego Biurrun
configure: Do not unconditionally add -Wall to host CFLAGS.
Some compilers choke on -Wall, so only add the flag after checking it works.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a6db2a25a70e3e8fb414e361719152a9e7e9766
---
configure | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 634edd5..b63330c 100644
--- a/configure
+++ b/configure
@@ -1672,7 +1672,7 @@ LIB_INSTALL_EXTRA_CMD='$$(RANLIB) "$(LIBDIR)/$(LIBNAME)"'
CC_O='-o $@'
-host_cflags='-D_ISOC99_SOURCE -O3 -g -Wall'
+host_cflags='-D_ISOC99_SOURCE -O3 -g'
host_libs='-lm'
target_path='$(CURDIR)'
@@ -2334,6 +2334,7 @@ check_cc -D_LARGEFILE_SOURCE <<EOF && add_cppflags -D_LARGEFILE_SOURCE
EOF
check_host_cflags -std=c99
+check_host_cflags -Wall
case "$arch" in
alpha|ia64|mips|parisc|sparc)
More information about the ffmpeg-cvslog
mailing list