Commit 73c3ed27 by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent 3e452a28
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> 2012-11-12 Ian Lance Taylor <iant@google.com>
Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Gerald Pfeifer <gerald@pfeifer.com> Gerald Pfeifer <gerald@pfeifer.com>
......
...@@ -11575,7 +11575,7 @@ fi ...@@ -11575,7 +11575,7 @@ fi
CFLAGS="$save_CFLAGS" CFLAGS="$save_CFLAGS"
if test "x$GCC" = "xyes"; then if test -n "${with_target_subdir}"; then
WARN_FLAGS="$WARN_FLAGS -Werror" WARN_FLAGS="$WARN_FLAGS -Werror"
fi fi
......
...@@ -120,7 +120,7 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \ ...@@ -120,7 +120,7 @@ ACX_PROG_CC_WARNING_OPTS([-W -Wall -Wwrite-strings -Wstrict-prototypes \
-Wmissing-format-attribute -Wcast-qual], -Wmissing-format-attribute -Wcast-qual],
[WARN_FLAGS]) [WARN_FLAGS])
if test "x$GCC" = "xyes"; then if test -n "${with_target_subdir}"; then
WARN_FLAGS="$WARN_FLAGS -Werror" WARN_FLAGS="$WARN_FLAGS -Werror"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment