aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-19 14:48:23 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-19 15:15:55 +0200
commit754de329910709b01666764c7563c8ec0aff2a07 (patch)
tree5428ac53b787e47e0e9ba8ec02e84de4225c4d03
parentc2afe81d854ba4e8a1d68d588ffdfc83d14e3323 (diff)
fix build: viterbi_sse: use AM_CFLAGS, not CFLAGSneels/cflags
This allows passing 'make CFLAGS+="..."' without breaking the build. Suggested-by: zecke Change-Id: I0628a9c739cded771605f5c55df7f21cb07beb3b
-rw-r--r--src/Makefile.am8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index e98c623..60f5002 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,17 +26,17 @@ libosmocore_la_SOURCES = timer.c timer_gettimeofday.c select.c signal.c msgb.c b
if HAVE_SSE3
libosmocore_la_SOURCES += viterbi_sse.c
if HAVE_SSE4_1
-viterbi_sse.lo : CFLAGS += -msse3 -msse4.1
+viterbi_sse.lo : AM_CFLAGS += -msse3 -msse4.1
else
-viterbi_sse.lo : CFLAGS += -msse3
+viterbi_sse.lo : AM_CFLAGS += -msse3
endif
if HAVE_AVX2
libosmocore_la_SOURCES += viterbi_sse_avx.c
if HAVE_SSE4_1
-viterbi_sse_avx.lo : CFLAGS += -msse3 -mavx2 -msse4.1
+viterbi_sse_avx.lo : AM_CFLAGS += -msse3 -mavx2 -msse4.1
else
-viterbi_sse_avx.lo : CFLAGS += -msse3 -mavx2
+viterbi_sse_avx.lo : AM_CFLAGS += -msse3 -mavx2
endif
endif
endif