From 73c3ed27fc6dc454b282d6e0d3fa76dbbd18e6dd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 13 Nov 2012 21:25:39 +0000 Subject: [PATCH] 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 --- libbacktrace/ChangeLog | 5 +++++ libbacktrace/configure | 2 +- libbacktrace/configure.ac | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index dcd49d071d6..fc5871ad30d 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 2a57c5102f3..737e81b92df 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 c9cba3e4e9c..243ce22582f 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 -- 2.30.2