comparison configure @ 18427:c459df5e8afd

Feed AltiVec compiler options into CFLAGS explicitly.
author diego
date Wed, 10 May 2006 22:00:30 +0000
parents e3379df74bcd
children 780e6a9b62ff
comparison
equal deleted inserted replaced
18426:2306dcaa256f 18427:c459df5e8afd
2194 echores "failed" 2194 echores "failed"
2195 die "obsolete binutils version" 2195 die "obsolete binutils version"
2196 fi 2196 fi
2197 fi 2197 fi
2198 2198
2199 #FIXME: This should happen before the check for CFLAGS..
2199 if ppc ; then 2200 if ppc ; then
2200 2201
2201 # check if altivec is supported by the compiler, and how to enable it 2202 # check if altivec is supported by the compiler, and how to enable it
2202 2203
2203 _altivec_gcc_flags='' 2204 _altivec_gcc_flags=''
2273 fi 2274 fi
2274 2275
2275 # if altivec is enabled, make sure the correct flags turn up in CFLAGS 2276 # if altivec is enabled, make sure the correct flags turn up in CFLAGS
2276 2277
2277 if test "$_altivec" = yes ; then 2278 if test "$_altivec" = yes ; then
2278 _mcpu="$_mcpu $_altivec_gcc_flags" 2279 #FIXME: _mcpu is used for CFLAGS, this needs to be set earlier
2280 #_mcpu="$_mcpu $_altivec_gcc_flags"
2281 CFLAGS="$CFLAGS $_altivec_gcc_flags"
2279 fi 2282 fi
2280 2283
2281 # setup _def_altivec correctly 2284 # setup _def_altivec correctly
2282 2285
2283 if test "$_altivec" = yes ; then 2286 if test "$_altivec" = yes ; then