summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorNathanael Nerode <neroden@gcc.gnu.org>2004-03-24 22:34:31 +0000
committerNathanael Nerode <neroden@gcc.gnu.org>2004-03-24 22:34:31 +0000
commit75ae22d9f0acf5f55b693b06b2eca0328d6bb0a1 (patch)
treed52958f87923785172a35a68c3c6988b82ffe4bd /configure
parent78f6246c81a6d23b8b8f624d38b00f8ad07ba384 (diff)
downloadbinutils-redhat-75ae22d9f0acf5f55b693b06b2eca0328d6bb0a1.tar.gz
* configure.in (top level bootstrap support): Rework --enable-werror
to set @stage2_werror_flag@. * configure: Regenerate. * Makefile.tpl (top level bootstrap support): Pass @stage2_werror_flag@ down to configure in stages 2 and 3. * Makefile.in: Regenerate.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 4 insertions, 4 deletions
diff --git a/configure b/configure
index a884c3281b..a674ab6b6f 100755
--- a/configure
+++ b/configure
@@ -4484,9 +4484,9 @@ else
enable_werror=yes
fi
-case ${enable_error} in
- yes) WERROR=-Werror ;;
- *) WERROR= ;;
+case ${enable_werror} in
+ yes) stage2_werror_flag="--enable-werror-always" ;;
+ *) stage2_werror_flag="" ;;
esac
@@ -4745,7 +4745,7 @@ s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
s%@MAINT@%$MAINT%g
s%@stage1_cflags@%$stage1_cflags%g
-s%@WERROR@%$WERROR%g
+s%@stage2_werror_flag@%$stage2_werror_flag%g
CEOF
EOF