mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 10:03:47 +08:00
* warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
if compiler is not GCC. * configure: Regenerate
This commit is contained in:
parent
76f703bfeb
commit
49c96104aa
@ -1,3 +1,13 @@
|
||||
2005-11-07 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
|
||||
if compiler is not GCC.
|
||||
* configure: Regenerate
|
||||
|
||||
2005-11-07 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* configure: Regenerate after modifying bfd/warning.m4.
|
||||
|
||||
2005-11-07 Steve Ellcey <sje@cup.hp.com>
|
||||
|
||||
* configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
|
||||
|
360
bfd/configure
vendored
360
bfd/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
dnl Common configure.in fragment
|
||||
|
||||
AC_DEFUN([AM_BINUTILS_WARNINGS],[
|
||||
WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||
GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||
|
||||
AC_ARG_ENABLE(werror,
|
||||
[ --enable-werror treat compile warnings as errors],
|
||||
@ -18,19 +18,25 @@ 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
|
||||
|
||||
AC_ARG_ENABLE(build-warnings,
|
||||
[ --enable-build-warnings Enable build-time compiler 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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user