diff --git a/src/gdd/Makefile b/src/gdd/Makefile index 640dd3781..d84f468ac 100644 --- a/src/gdd/Makefile +++ b/src/gdd/Makefile @@ -70,6 +70,7 @@ CLEANS += $(COMMON_DIR)/aitConvertGenerated.cc USR_CXXFLAGS_Linux = -fno-strict-aliasing USR_CXXFLAGS_RTEMS = -fno-strict-aliasing +USR_CXXFLAGS_vxWorks = -fno-strict-aliasing ifeq ($(T_A),$(EPICS_HOST_ARCH)) # genApps and aitGen are needed to finish libgdd diff --git a/src/pcas/build/Makefile b/src/pcas/build/Makefile index 6b72edf21..8a797e8c0 100644 --- a/src/pcas/build/Makefile +++ b/src/pcas/build/Makefile @@ -74,6 +74,10 @@ LIBSRCS += casDGIntfIO.cc LIBSRCS += casStreamIO.cc LIBSRCS += ipIgnoreEntry.cc +USR_CXXFLAGS_Linux = -fno-strict-aliasing +USR_CXXFLAGS_RTEMS = -fno-strict-aliasing +USR_CXXFLAGS_vxWorks = -fno-strict-aliasing + # There is a bug in some vxWorks compilers that these work around: ifeq ($(VX_GNU_VERSION), 4.1.2) casStreamOS_CXXFLAGS_vxWorks-ppc604_altivec = -O0