From 15f3358e3994193de56c958c2575488995dff29a Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 20 Dec 2006 23:28:12 +0000 Subject: [PATCH] Prevent vxWorks 5.4 builds of altivec targets. --- configure/os/CONFIG.Common.vxWorks-ppc604_altivec | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/configure/os/CONFIG.Common.vxWorks-ppc604_altivec b/configure/os/CONFIG.Common.vxWorks-ppc604_altivec index dd017671c..c56e1efc1 100644 --- a/configure/os/CONFIG.Common.vxWorks-ppc604_altivec +++ b/configure/os/CONFIG.Common.vxWorks-ppc604_altivec @@ -11,11 +11,12 @@ include $(CONFIG)/os/CONFIG.Common.vxWorks-ppc604_long defval = $(if $(strip $(1),),$(1),$(2)) -# Tell compiler to include altivec support -ALTIVEC_CFLAG_5 = -fvec - -# From 6.1 the altivec compiler option changed +# Tell compiler to include altivec support; not available in 5.4 +ALTIVEC_CFLAG_5.4 = THIS_VERSION_OF_VXWORKS DOES_NOT_SUPPORT_ALTIVEC +ALTIVEC_CFLAG_5.5 = -fvec ALTIVEC_CFLAG_6.0 = -fvec -ALTIVEC_CFLAG_6 = $(call defval,$(ALTIVEC_CFLAG_$(VXWORKS_VERSION)),-maltivec) -ARCH_DEP_CFLAGS += $(ALTIVEC_CFLAG_$(VXWORKS_MAJOR_VERSION)) +# From 6.1 onwards the compiler option changed +ALTIVEC_CFLAG = -maltivec + +ARCH_DEP_CFLAGS += $(call defval,$(ALTIVEC_CFLAG_$(VXWORKS_VERSION)),$(ALTIVEC_CFLAG))