ICU-9790 Update configure script
X-SVN-Rev: 34322
This commit is contained in:
parent
86472cec4b
commit
40f04c3961
15
icu4c/source/configure
vendored
15
icu4c/source/configure
vendored
@ -4082,9 +4082,18 @@ $as_echo "$ac_use_strict_options" >&6; }
|
||||
then
|
||||
if test "$GCC" = yes
|
||||
then
|
||||
# Do not use -ansi. It limits us to C90, and it breaks some platforms.
|
||||
# We use -std=c99 to disable the gnu99 defaults and its associated warnings
|
||||
CFLAGS="$CFLAGS -Wall -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
||||
case "${host}" in
|
||||
*-*-solaris*)
|
||||
# Don't use -std=c99 option on Solaris/GCC
|
||||
;;
|
||||
*)
|
||||
# Do not use -ansi. It limits us to C90, and it breaks some platforms.
|
||||
# We use -std=c99 to disable the gnu99 defaults and its associated warnings
|
||||
CFLAGS="$CFLAGS -std=c99"
|
||||
;;
|
||||
esac
|
||||
|
||||
CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
||||
else
|
||||
case "${host}" in
|
||||
*-*-cygwin)
|
||||
|
Loading…
Reference in New Issue
Block a user