]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR other/55312 (libbacktrace doesn't honor --disable-werror)
authorIan Lance Taylor <iant@google.com>
Tue, 13 Nov 2012 21:25:39 +0000 (21:25 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 13 Nov 2012 21:25:39 +0000 (21:25 +0000)
PR other/55312
* configure.ac: Only add -Werror if building a target library.

From-SVN: r193485

libbacktrace/ChangeLog
libbacktrace/configure
libbacktrace/configure.ac

index dcd49d071d69082df04c0587ea6beaecb1ba73a3..fc5871ad30dedb98c56549c1aec60d3f7d3552e1 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-13  Ian Lance Taylor  <iant@google.com>
+
+       PR other/55312
+       * configure.ac: Only add -Werror if building a target library.
+
 2012-11-12  Ian Lance Taylor  <iant@google.com>
            Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
            Gerald Pfeifer  <gerald@pfeifer.com>
index 2a57c5102f35c8c2a10503c52ca5722844ac7780..737e81b92dfa4c551a44c1e0a1a83f5199d4ee45 100755 (executable)
@@ -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
 
index c9cba3e4e9c08e9cbeca08f2f6bd94febe32ea52..243ce22582f74f6880c606d765e3f600bec1b32c 100644 (file)
@@ -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