fix nomflags

parent 0f488ebc
Pipeline #1356 passed with stage
in 1 minute and 22 seconds
......@@ -12,10 +12,10 @@ AM_PROG_AS
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT
CFLAGS=${CFLAGS--O3}
CFLAGS=`echo "${CFLAGS}" | sed -e 's/-O2//g'`
flags="$CFLAGS"
nomflags="`echo $CFLAGS | sed -e 's/-m[[^ ]]* //g'`"
nomflags="`echo $CFLAGS | sed -e 's/-m[0-9]* //g'`"
# special optimizations for some plattforms
case "$host" in
......@@ -23,21 +23,21 @@ case "$host" in
flags="$CFLAGS"
fastflags="-O3 -mfpu=neon $nomflags"
enable_fast=yes
CFLAGS="-O3"
CFLAGS="-O3 $nomflags"
;;
i686-*linux*|i686-*cygwin*)
flags="$CFLAGS"
fastflags="-O3 -m32 -mssse3 $nomflags"
enable_fast=yes
CFLAGS="-O3 -m32"
CFLAGS="-O2 -m32 $nomflags"
;;
i686-*)
# if you don't want sse, specify i586-linux-gnu
CFLAGS="-O3 -m32 -mssse3"
CFLAGS="-O2 -m32 -mssse3 $nomflags"
;;
*)
# at least use O3, otherwise we might not get conditional moves
CFLAGS="-O3"
CFLAGS="-O3 $nomflags"
;;
esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment