diff --git a/configure/os/CONFIG.Common.mvl40-xscale_be b/configure/os/CONFIG.Common.mvl40-xscale_be index 3606ab4cf..9d2b75655 100644 --- a/configure/os/CONFIG.Common.mvl40-xscale_be +++ b/configure/os/CONFIG.Common.mvl40-xscale_be @@ -10,3 +10,4 @@ ARCH_CLASS = xscale GNU_DIR=/afs/psi.ch/project/embeddedlinux/moxa/xscale_be/armv5teb-montavista-linuxeabi ARCH_DEP_CFLAGS += -funwind-tables +ARCH_DEP_CPPFLAGS += -fno-strict-aliasing diff --git a/configure/os/CONFIG.Common.vxWorksCommon b/configure/os/CONFIG.Common.vxWorksCommon index e45928d2c..461478767 100644 --- a/configure/os/CONFIG.Common.vxWorksCommon +++ b/configure/os/CONFIG.Common.vxWorksCommon @@ -161,11 +161,8 @@ OPT_CXXFLAGS_YES = -O2 #-------------------------------------------------- # code flags -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_6 += -fno-strict-aliasing CODE_CPPFLAGS += $(CODE_CPPFLAGS_$(VXWORKS_MAJOR_VERSION)) # # For vxWorks versions before 6.3 we need this g++ compiler flag