diff --git a/configure/os/CONFIG.Common.eldk42-ppc4xxFP b/configure/os/CONFIG.Common.eldk42-ppc4xxFP index 001b9df7a..77b2375d9 100644 --- a/configure/os/CONFIG.Common.eldk42-ppc4xxFP +++ b/configure/os/CONFIG.Common.eldk42-ppc4xxFP @@ -11,6 +11,8 @@ ELDK=/opt/eldk-4.2 GNU_TARGET=ppc_4xxFP GNU_DIR=$(ELDK)/usr +ARCH_DEP_CFLAGS += -fno-strict-aliasing + # This cross tool chain is installed in a somehow weired way # Without the following lines it does not work on RHEL7 # but it worked on SL6 diff --git a/configure/os/CONFIG.Common.vxWorksCommon b/configure/os/CONFIG.Common.vxWorksCommon index 2d5d95739..e45928d2c 100644 --- a/configure/os/CONFIG.Common.vxWorksCommon +++ b/configure/os/CONFIG.Common.vxWorksCommon @@ -161,7 +161,12 @@ OPT_CXXFLAGS_YES = -O2 #-------------------------------------------------- # code flags -CODE_CFLAGS = +CODE_CPPFLAGS_6.6 = -fno-strict-aliasing +CODE_CPPFLAGS_6.7 = -fno-strict-aliasing +CODE_CPPFLAGS_6.8 = -fno-strict-aliasing +CODE_CPPFLAGS_6.9 = -fno-strict-aliasing +CODE_CPPFLAGS_6 = $(CODE_CPPFLAGS_$(VXWORKS_VERSION)) +CODE_CPPFLAGS += $(CODE_CPPFLAGS_$(VXWORKS_MAJOR_VERSION)) # # For vxWorks versions before 6.3 we need this g++ compiler flag CODE_CXXFLAGS_5 = -fno-implicit-templates @@ -169,7 +174,7 @@ CODE_CXXFLAGS_6.0 = -fno-implicit-templates CODE_CXXFLAGS_6.1 = -fno-implicit-templates CODE_CXXFLAGS_6.2 = -fno-implicit-templates CODE_CXXFLAGS_6 = $(CODE_CXXFLAGS_$(VXWORKS_VERSION)) -CODE_CXXFLAGS = $(CODE_CXXFLAGS_$(VXWORKS_MAJOR_VERSION)) +CODE_CXXFLAGS += $(CODE_CXXFLAGS_$(VXWORKS_MAJOR_VERSION)) #-------------------------------------------------- # no shared libs for vxWorks