aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-03-14 15:29:38 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-02 10:21:25 +0000
commit78b5627fa1c911713a776e4aa1cb2d8f3a04bd8f (patch)
tree0d020f86e1d4c3a9469a2e56b4c6128dde191a7d
parentde116e90c03c534fa4b51ef40dfd2bb9e843c86e (diff)
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
-rw-r--r--Transceiver52M/x86/Makefile.am2
1 files changed, 1 insertions, 1 deletions
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