aboutsummaryrefslogtreecommitdiff
path: root/libbacktrace
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-11-13 21:25:39 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-11-13 21:25:39 +0000
commit73c3ed27fc6dc454b282d6e0d3fa76dbbd18e6dd (patch)
treebb353a1a424b6d80ffffd447244de8141fd12ca3 /libbacktrace
parent3e452a2871fda4d89e4eb11f7e5cb42de2f7c27a (diff)
downloadgcc-73c3ed27fc6dc454b282d6e0d3fa76dbbd18e6dd.zip
gcc-73c3ed27fc6dc454b282d6e0d3fa76dbbd18e6dd.tar.gz
gcc-73c3ed27fc6dc454b282d6e0d3fa76dbbd18e6dd.tar.bz2
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
Diffstat (limited to 'libbacktrace')
-rw-r--r--libbacktrace/ChangeLog5
-rwxr-xr-xlibbacktrace/configure2
-rw-r--r--libbacktrace/configure.ac2
3 files changed, 7 insertions, 2 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
index dcd49d0..fc5871a 100644
--- a/libbacktrace/ChangeLog
+++ b/libbacktrace/ChangeLog
@@ -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>
diff --git a/libbacktrace/configure b/libbacktrace/configure
index 2a57c51..737e81b 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 c9cba3e..243ce225 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