Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libgc/configure.ac')
-rw-r--r--libgc/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgc/configure.ac b/libgc/configure.ac
index 837e2cb9f15..7dc04985a90 100644
--- a/libgc/configure.ac
+++ b/libgc/configure.ac
@@ -531,6 +531,12 @@ fi
AC_ARG_ENABLE(quiet-build, [ --enable-quiet-build Enable quiet libgc build (on by default)], enable_quiet_build=$enableval, enable_quiet_build=yes)
AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
+AC_ARG_ENABLE(werror, [ --enable-werror Pass -Werror to the C compiler], werror_flag=$enableval, werror_flag=no)
+if test x$werror_flag = xyes; then
+ WERROR_CFLAGS="-Werror"
+fi
+AC_SUBST([WERROR_CFLAGS])
+
if test "${multilib}" = "yes"; then
multilib_arg="--enable-multilib"
else