ICU-11942 Disable certain gcc flags on solaris

X-SVN-Rev: 38632
This commit is contained in:
Michael Ow 2016-04-19 21:00:50 +00:00
parent 067f19e59e
commit 8d4fe67a1e
3 changed files with 17 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Copyright (c) 1999-2015, International Business Machines Corporation and
# Copyright (c) 1999-2016, International Business Machines Corporation and
# others. All Rights Reserved.
# acinclude.m4 for ICU
# Don't edit aclocal.m4, do edit acinclude.m4
@ -461,6 +461,9 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE],
if test "$GCC" = yes
then
case "${host}" in
*-*-solaris*)
# Don't use -std=c99 on Solaris because of timezone check fails
;;
*)
# 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

View File

@ -4343,6 +4343,9 @@ $as_echo "$ac_use_strict_options" >&6; }
if test "$GCC" = yes
then
case "${host}" in
*-*-solaris*)
# Don't use -std=c99 on Solaris because of timezone check fails
;;
*)
# 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
@ -5949,6 +5952,11 @@ $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;}
else
CXXFLAGS="$OLD_CXXFLAGS"
fi
case "${host}" in
*-*-solaris*)
CXXFLAGS="$OLD_CXXFLAGS"
;;
esac
fi
fi

View File

@ -505,6 +505,11 @@ if [[ "$GXX" = yes ]]; then
else
CXXFLAGS="$OLD_CXXFLAGS"
fi
case "${host}" in
*-*-solaris*)
CXXFLAGS="$OLD_CXXFLAGS"
;;
esac
fi
fi