From 31c882b04418204ba44fe8f3ab7d2437a1bfef51 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Mon, 16 Apr 2007 19:41:07 +0000 Subject: [PATCH] Define an ALTIVEC macro for conditional compilation of altivec-specific code. --- configure/os/CONFIG.Common.vxWorks-ppc604_altivec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure/os/CONFIG.Common.vxWorks-ppc604_altivec b/configure/os/CONFIG.Common.vxWorks-ppc604_altivec index c56e1efc1..1ec14b736 100644 --- a/configure/os/CONFIG.Common.vxWorks-ppc604_altivec +++ b/configure/os/CONFIG.Common.vxWorks-ppc604_altivec @@ -13,10 +13,10 @@ defval = $(if $(strip $(1),),$(1),$(2)) # 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_5.5 = -fvec -DALTIVEC +ALTIVEC_CFLAG_6.0 = -fvec -DALTIVEC # From 6.1 onwards the compiler option changed -ALTIVEC_CFLAG = -maltivec +ALTIVEC_CFLAG = -maltivec -DALTIVEC ARCH_DEP_CFLAGS += $(call defval,$(ALTIVEC_CFLAG_$(VXWORKS_VERSION)),$(ALTIVEC_CFLAG))