Skip to content

Commit cc4753f

Browse files
committed
hot fix to support -march=native on recent gcc versions
1 parent 593d4eb commit cc4753f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

configure.ac

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,14 @@ AC_ARG_ENABLE(pic,
4949

5050
case $CCTYPE in
5151
gcc)
52-
CCFLAGS="-O3 -fno-tree-vectorize -ffast-math -fomit-frame-pointer -std=c99 -pedantic -Wextra -Wall -Wno-unknown-pragmas -Wshadow -Wmissing-prototypes -Wfatal-errors"
52+
CCFLAGS="-O3 -fno-tree-vectorize -ffast-math -fomit-frame-pointer -std=c99 -pedantic -Wextra -Wall -Wno-unknown-pragmas -Wshadow -Wmissing-prototypes -Wfatal-errors -march=native"
5353
GCCVERSION="`$CC -dumpversion 2>&1`"
5454
echo "Using gcc version $GCCVERSION"
5555
AC_SUBST(GCCVERSION)
5656
changequote(,)
5757
gcc43=`echo $GCCVERSION | grep -c '^4\.[3456789]'`
5858
gcc44=`echo $GCCVERSION | grep -c '^4\.4'`
5959
changequote([,])
60-
if test $gcc43 -gt 0; then
61-
CCFLAGS="$CCFLAGS -march=native"
62-
fi
6360
if test $gcc44 -gt 0; then
6461
CCFLAGS="$CCFLAGS -fno-tree-fre"
6562
fi

0 commit comments

Comments
 (0)