changeset 18427:c459df5e8afd

Feed AltiVec compiler options into CFLAGS explicitly.
author diego
date Wed, 10 May 2006 22:00:30 +0000
parents 2306dcaa256f
children 22805699b7b1
files configure
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Wed May 10 18:31:53 2006 +0000
+++ b/configure	Wed May 10 22:00:30 2006 +0000
@@ -2196,6 +2196,7 @@
   fi
 fi
 
+#FIXME: This should happen before the check for CFLAGS..
 if ppc ; then
     
     # check if altivec is supported by the compiler, and how to enable it
@@ -2275,7 +2276,9 @@
     # if altivec is enabled, make sure the correct flags turn up in CFLAGS
 
     if test "$_altivec" = yes ; then
-        _mcpu="$_mcpu $_altivec_gcc_flags"
+        #FIXME: _mcpu is used for CFLAGS, this needs to be set earlier
+        #_mcpu="$_mcpu $_altivec_gcc_flags"
+        CFLAGS="$CFLAGS $_altivec_gcc_flags"
     fi
 
     # setup _def_altivec correctly