[PATCH] libosmocore[master]: fix build: viterbi_sse: use AM_CFLAGS, not CFLAGS

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Mon Jun 19 13:17:18 UTC 2017


Review at  https://gerrit.osmocom.org/2975

fix build: viterbi_sse: use AM_CFLAGS, not CFLAGS

This allows passing 'make CFLAGS+="..."' without breaking the build.

Suggested-by: zecke

Change-Id: I0628a9c739cded771605f5c55df7f21cb07beb3b
---
M src/Makefile.am
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/75/2975/1

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 @@
 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

-- 
To view, visit https://gerrit.osmocom.org/2975
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0628a9c739cded771605f5c55df7f21cb07beb3b
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list