From: Steven R. Loomis Date: Thu, 26 Jun 2014 02:25:49 +0000 (+0000) Subject: ICU-10580 revert r35955 X-Git-Tag: milestone-59-0-1~1831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10c819d115bc1ade7081f9e9af3e6d9d15f1bd13;p=icu ICU-10580 revert r35955 X-SVN-Rev: 35956 --- diff --git a/icu4c/source/acinclude.m4 b/icu4c/source/acinclude.m4 index 797a2963770..aeadc2c664a 100644 --- a/icu4c/source/acinclude.m4 +++ b/icu4c/source/acinclude.m4 @@ -262,7 +262,7 @@ AC_DEFUN([AC_CHECK_64BIT_LIBS], if test "$CAN_BUILD_64" != yes; then # Nope. back out changes. CFLAGS="${CFLAGS_OLD}" - CXXFLAGS="${CXXFLAGS_OLD}" + CXXFLAGS="${CFLAGS_OLD}" # 2. try xarch=v9 [deprecated] ## TODO: cross compile: the following won't work. SPARCV9=`isainfo -n 2>&1 | grep sparcv9` @@ -457,6 +457,9 @@ AC_DEFUN([AC_CHECK_STRICT_COMPILE], if test "$GCC" = yes then 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 diff --git a/icu4c/source/config/mh-solaris-gcc b/icu4c/source/config/mh-solaris-gcc index eac6d2fb005..313e1ab6373 100644 --- a/icu4c/source/config/mh-solaris-gcc +++ b/icu4c/source/config/mh-solaris-gcc @@ -9,8 +9,8 @@ SHAREDLIBCXXFLAGS = -fPIC SHAREDLIBCPPFLAGS = -DPIC ## Commands to generate dependency files -GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) $(CFLAGS) -GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) $(CXXFLAGS) +GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) +GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) ## These are the library specific LDFLAGS LDFLAGSICUDT=-nodefaultlibs -nostdlib