ICU-9790 Don't use c99 for Solaris/GCC platform
X-SVN-Rev: 34320
This commit is contained in:
parent
76b93683b4
commit
25a1c42dd1
@ -456,9 +456,18 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE],
|
|||||||
then
|
then
|
||||||
if test "$GCC" = yes
|
if test "$GCC" = yes
|
||||||
then
|
then
|
||||||
# Do not use -ansi. It limits us to C90, and it breaks some platforms.
|
case "${host}" in
|
||||||
# We use -std=c99 to disable the gnu99 defaults and its associated warnings
|
*-*-solaris*)
|
||||||
CFLAGS="$CFLAGS -Wall -std=c99 -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
# 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
|
else
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-*-cygwin)
|
*-*-cygwin)
|
||||||
|
Loading…
Reference in New Issue
Block a user