From ae689aa0a51bb5345a0196857a7cacee0a36027f Mon Sep 17 00:00:00 2001 From: Ian Leonard Date: Sat, 27 Oct 2018 21:39:54 +0000 Subject: [PATCH] config/optimize: add march=native to host cflags Relies on the assumption that the machine that will build the toolchain will also be the machine to use said toolchain. Signed-off-by: Ian Leonard --- config/optimize | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/optimize b/config/optimize index d828dc688b..3144c05d1f 100644 --- a/config/optimize +++ b/config/optimize @@ -22,7 +22,7 @@ TARGET_LIBDIR="$SYSROOT_PREFIX/lib $SYSROOT_PREFIX/usr/lib" TARGET_INCDIR="$SYSROOT_PREFIX/include $SYSROOT_PREFIX/usr/include" HOST_CPPFLAGS="" -HOST_CFLAGS="-O2 -Wall -pipe -I$TOOLCHAIN/include" +HOST_CFLAGS="-march=native -O2 -Wall -pipe -I$TOOLCHAIN/include" HOST_CXXFLAGS="$HOST_CFLAGS" HOST_LDFLAGS="-Wl,-rpath,$TOOLCHAIN/lib -L$TOOLCHAIN/lib" HOST_INCDIR="$TOOLCHAIN/include /usr/include"