From 78b5627fa1c911713a776e4aa1cb2d8f3a04bd8f Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 14 Mar 2017 15:29:38 +0100 Subject: buildenv: Turn off native architecture builds The compiler option -march=native instructs the compiler to auto-optimize the code for the current build architecture. This is fine for building and using locally, but contraproductive when generating binary packages. This commit replaces -march=native with $(SIMD_FLAGS), which contains a collection of supported SIMD options, so we won't loose the SSE support. Change-Id: I3df4b8db9692016115edbe2247beeec090715687 --- Transceiver52M/x86/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transceiver52M/x86/Makefile.am b/Transceiver52M/x86/Makefile.am index eda1a17..699faad 100644 --- a/Transceiver52M/x86/Makefile.am +++ b/Transceiver52M/x86/Makefile.am @@ -1,5 +1,5 @@ if !ARCH_ARM -AM_CFLAGS = -Wall -std=gnu99 -march=native -I${srcdir}/../common +AM_CFLAGS = -Wall -std=gnu99 $(SIMD_FLAGS) -I${srcdir}/../common noinst_LTLIBRARIES = libarch.la -- cgit v1.2.3