From: Ian Lance Taylor Date: Tue, 13 Nov 2012 21:25:39 +0000 (+0000) Subject: re PR other/55312 (libbacktrace doesn't honor --disable-werror) X-Git-Tag: releases/gcc-4.8.0~2031 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73c3ed27fc6dc454b282d6e0d3fa76dbbd18e6dd;p=thirdparty%2Fgcc.git re PR other/55312 (libbacktrace doesn't honor --disable-werror) PR other/55312 * configure.ac: Only add -Werror if building a target library. From-SVN: r193485 --- diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index dcd49d071d69..fc5871ad30de 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2012-11-13 Ian Lance Taylor + + PR other/55312 + * configure.ac: Only add -Werror if building a target library. + 2012-11-12 Ian Lance Taylor Rainer Orth Gerald Pfeifer diff --git a/libbacktrace/configure b/libbacktrace/configure index 2a57c5102f35..737e81b92dfa 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -11575,7 +11575,7 @@ fi CFLAGS="$save_CFLAGS" -if test "x$GCC" = "xyes"; then +if test -n "${with_target_subdir}"; then WARN_FLAGS="$WARN_FLAGS -Werror" fi diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index c9cba3e4e9c0..243ce22582f7 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -120,7 +120,7 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ -Wmissing-format-attribute -Wcast-qual], [WARN_FLAGS]) -if test "x$GCC" = "xyes"; then +if test -n "${with_target_subdir}"; then WARN_FLAGS="$WARN_FLAGS -Werror" fi