Displaying 2 results from an estimated 2 matches for "oldcflags".
Did you mean:
old_cflags
2004 Aug 06
2
libspeex/SSE Intrinsics with GCC 3.3.x
On Fri, Apr 02, 2004 at 12:08:52AM -0500, Jean-Marc Valin wrote:
> I'm aware of the problem, but I don't know how to get autoconf to handle
> that properly. If someone knows how to make that work with autoconf even
> with non-gcc compilers and with default CFLAGS, I'm interested.
It's easy enough to test whether gcc will accept -msse and ifdef out the
intrinsics code
2004 Aug 06
1
libspeex/SSE Intrinsics with GCC 3.3.x
...but it probably doesn't hurt to try.
The patch as written results in CFLAGS="-g -O2 -O3 -msee" if it
succeeds. You can avoid the duplicate optimization levels by saying
something like:
if test $ac_cv_prog_gcc = yes; then
dnl remove any existing gcc -On flag
oldcflags=`echo $old_cflags | sed -e 's/-O.//'`
OPT_CFLAGS="$OPT_CFLAGS -O3"
fi
OPT_CFLAGS="$OPT_CFLAGS -msse"
instead.
So perhaps not so simple, but writing expert systems in sh never is.
-r
<p><p>
-------------- next part --------------
SW5kZ...