diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | include/makeinclude/platform_g++_common.GNU | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 968990263b3..152fc43c53b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 26 23:07:17 UTC 2013 Steve Huston <shuston@riverace.com> + + * include/makeinclude/platform_g++_common.GNU: When turning on + no-strict-aliasing, add the option to FLAGS_C_CC instead of + CCFLAGS so that both C and C++ compilers get it. + Thu Jan 3 22:53:44 UTC 2013 Steve Huston <shuston@riverace.com> * ace/OS_NS_netdb.cpp (ACE_OS::getmacaddress): On Linux, search for diff --git a/include/makeinclude/platform_g++_common.GNU b/include/makeinclude/platform_g++_common.GNU index d7e4db7355d..851e1c905c7 100644 --- a/include/makeinclude/platform_g++_common.GNU +++ b/include/makeinclude/platform_g++_common.GNU @@ -143,7 +143,7 @@ ifeq ($(no-optimize-sibling-calls), 1) endif ifeq ($(no_strict_aliasing), 1) - CCFLAGS += -fno-strict-aliasing + FLAGS_C_CC += -fno-strict-aliasing else ifneq ($(no_strict_aliasing), 0) # if not explicitly disabled enable suppression of strict-aliasing checks by default @@ -152,7 +152,7 @@ else # lot of pain to attempt to solve code issues and the best way to deal is to suppress ifeq ($(GXX_4_OR_BETTER), 1) ifneq ($(findstring $(CXX_MAJOR_VERSION).$(CXX_MINOR_VERSION),4.1),$(CXX_MAJOR_VERSION).$(CXX_MINOR_VERSION)) - CCFLAGS += -fno-strict-aliasing + FLAGS_C_CC += -fno-strict-aliasing endif endif endif |