]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/sh/configure
sim: move -Werror disabling to Makefile
[thirdparty/binutils-gdb.git] / sim / sh / configure
index 661ad09e3cebb69d01875f35219e6f5fdf77a9c8..371c3553ce03e240293dbd0f081cc3c6aa3306e1 100755 (executable)
@@ -11149,12 +11149,14 @@ if test "${enable_werror+set}" = set; then :
 fi
 
 
-# Enable -Werror by default when using gcc
 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
-    ERROR_ON_WARNING=yes
+  ERROR_ON_WARNING=yes
 fi
 
 WERROR_CFLAGS=""
+if test "${ERROR_ON_WARNING}" = yes ; then
+  WERROR_CFLAGS="-Werror"
+fi
 
 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
 -Wpointer-sign \
@@ -11236,7 +11238,6 @@ $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
 fi
 
 
-
 hardware="cfi core pal glue "
 sim_hw_cflags="-DWITH_HW=1"
 sim_hw="$hardware"