diff options
author | Steve Ellcey <sje@cup.hp.com> | 2005-11-07 22:21:48 +0000 |
---|---|---|
committer | Steve Ellcey <sje@cup.hp.com> | 2005-11-07 22:21:48 +0000 |
commit | a541e3cedd262e3e67cc17145be7fa7cbe035b1d (patch) | |
tree | 3cceee88be6f2814eb8c6851afea406b23a0b8e4 /ld | |
parent | 49c96104aa8c20ee6d0e7911e5ae44b496ce3986 (diff) | |
download | fsf-binutils-gdb-a541e3cedd262e3e67cc17145be7fa7cbe035b1d.zip fsf-binutils-gdb-a541e3cedd262e3e67cc17145be7fa7cbe035b1d.tar.gz fsf-binutils-gdb-a541e3cedd262e3e67cc17145be7fa7cbe035b1d.tar.bz2 |
* configure: Regenerate after modifying bfd/warning.m4.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rwxr-xr-x | ld/configure | 18 |
2 files changed, 16 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 2973098..ea25fd9 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2005-11-07 Steve Ellcey <sje@cup.hp.com> + + * configure: Regenerate after modifying bfd/warning.m4. + 2005-11-07 Olaf Hering <olh@suse.de> * ldmain.c (main): Add \n to error message. diff --git a/ld/configure b/ld/configure index 6bc123d..f946d07 100755 --- a/ld/configure +++ b/ld/configure @@ -4126,7 +4126,7 @@ fi; -WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" +GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" # Check whether --enable-werror or --disable-werror was given. if test "${enable_werror+set}" = set; then @@ -4147,20 +4147,26 @@ fi NO_WERROR= if test "${ERROR_ON_WARNING}" = yes ; then - WARN_CFLAGS="$WARN_CFLAGS -Werror" + GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" NO_WERROR="-Wno-error" fi +if test "${GCC}" = yes ; then + WARN_CFLAGS="${GCC_WARN_CFLAGS}" +fi + # Check whether --enable-build-warnings or --disable-build-warnings was given. if test "${enable_build_warnings+set}" = set; then enableval="$enable_build_warnings" case "${enableval}" in - yes) ;; - no) WARN_CFLAGS="-w";; + yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; + no) if test "${GCC}" = yes ; then + WARN_CFLAGS="-w" + fi;; ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` - WARN_CFLAGS="${WARN_CFLAGS} ${t}";; + WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` - WARN_CFLAGS="${t} ${WARN_CFLAGS}";; + WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; esac fi; |