These flags are accepted without error but produce an annoying warning. Filtering them out makes the build less noisy.
Signed-off-by: Mans Rullgard <[email protected]> --- configure | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 788f4c9..9d7127f 100755 --- a/configure +++ b/configure @@ -2070,6 +2070,15 @@ elif $cc -v 2>&1 | grep -q 'PathScale\|Path64'; then AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' speed_cflags='-O2' size_cflags='-Os' + filter_cflags=pathscale_cflags + pathscale_cflags(){ + for flag; do + case $flag in + -Wdisabled-optimization) continue ;; + esac + echo $flag + done + } elif $cc -v 2>&1 | grep -q Open64; then cc_type=open64 cc_version=__OPEN64__ @@ -2078,6 +2087,17 @@ elif $cc -v 2>&1 | grep -q Open64; then AS_DEPFLAGS='-MMD -MF $(@:.o=.d) -MT $@' speed_cflags='-O2' size_cflags='-Os' + filter_cflags=open64_cflags + open64_cflags(){ + for flag; do + case $flag in + -Wdisabled-optimization) continue ;; + -Wtype-limits) continue ;; + -fno-signed-zeros) continue ;; + esac + echo $flag + done + } fi test -n "$cc_type" && enable $cc_type || -- 1.7.5.3 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
