summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-03-16 17:18:17 +0000
committerNick Clifton <nickc@redhat.com>2005-03-16 17:18:17 +0000
commit8b9f2bb3f04bb47fcc1a3e756167f9a30f8ddbb1 (patch)
tree36db12a426f125e8481c066e6663458d56ee716f /ld
parent000c7abf9f453ba6592bd77b0efbf923632b7aee (diff)
downloadbinutils-redhat-8b9f2bb3f04bb47fcc1a3e756167f9a30f8ddbb1.tar.gz
Rename switch to enable/disable -Werror to --enable-werror/--disable-werror
for compatibility with gcc.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rwxr-xr-xld/configure14
-rw-r--r--ld/configure.in10
3 files changed, 14 insertions, 14 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index c0dfec0859..e47e8ca135 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,9 +1,9 @@
2005-03-16 Nick Clifton <nickc@redhat.com>
Ben Elliston <bje@au.ibm.com>
- * configure.in (error-on-warning): New switch: Add -Werror to the
+ * configure.in (werror): New switch: Add -Werror to the
compiler command line. Enabled by default. Disable via
- --disable-error-on-warning.
+ --disable-werror.
* configure: Regenerate.
2005-03-16 Alan Modra <amodra@bigpond.net.au>
diff --git a/ld/configure b/ld/configure
index d2dd368da4..bc7db6faeb 100755
--- a/ld/configure
+++ b/ld/configure
@@ -32,7 +32,7 @@ ac_help="$ac_help
ac_help="$ac_help
--with-sysroot[=DIR] Search for usr/lib et al within DIR."
ac_help="$ac_help
- --enable-error-on-warning treat compile warnings as errors"
+ --enable-werror treat compile warnings as errors"
ac_help="$ac_help
--enable-build-warnings enable build-time compiler warnings if gcc is used"
ac_help="$ac_help
@@ -2262,24 +2262,24 @@ fi
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
-# Check whether --enable-error-on-warning or --disable-error-on-warning was given.
-if test "${enable_error_on_warning+set}" = set; then
- enableval="$enable_error_on_warning"
+# Check whether --enable-werror or --disable-werror was given.
+if test "${enable_werror+set}" = set; then
+ enableval="$enable_werror"
case "${enableval}" in
yes | y) ERROR_ON_WARNING="yes" ;;
no | n) ERROR_ON_WARNING="no" ;;
- *) { echo "configure: error: bad value ${enableval} for --enable-error-on-warning" 1>&2; exit 1; } ;;
+ *) { echo "configure: error: bad value ${enableval} for --enable-werror" 1>&2; exit 1; } ;;
esac
fi
-# Enable -Werror by default, suppressing it only for --disable-error-on-warning
+# Enable -Werror by default, suppressing it only for --disable-werror
# or --disable-build-warnings.
if test "${ERROR_ON_WARNING}" != no
then
build_warnings="$build_warnings -Werror"
fi
-
+
# Check whether --enable-build-warnings or --disable-build-warnings was given.
if test "${enable_build_warnings+set}" = set; then
enableval="$enable_build_warnings"
diff --git a/ld/configure.in b/ld/configure.in
index d84a2ae557..39d4d1277a 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -68,21 +68,21 @@ AC_SUBST(TARGET_SYSTEM_ROOT_DEFINE)
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
-AC_ARG_ENABLE(error-on-warning,
- [ --enable-error-on-warning treat compile warnings as errors],
+AC_ARG_ENABLE(werror,
+ [ --enable-werror treat compile warnings as errors],
[case "${enableval}" in
yes | y) ERROR_ON_WARNING="yes" ;;
no | n) ERROR_ON_WARNING="no" ;;
- *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-werror) ;;
esac])
-# Enable -Werror by default, suppressing it only for --disable-error-on-warning
+# Enable -Werror by default, suppressing it only for --disable-werror
# or --disable-build-warnings.
if test "${ERROR_ON_WARNING}" != no
then
build_warnings="$build_warnings -Werror"
fi
-
+
AC_ARG_ENABLE(build-warnings,
[ --enable-build-warnings enable build-time compiler warnings if gcc is used],
[case "${enableval}" in