[MERGED] libosmocore[master]: src/Makefile.am: fix build: 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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Mon Jun 19 16:06:38 UTC 2017


Vadim Yanitskiy has submitted this change and it was merged.

Change subject: src/Makefile.am: fix build: use AM_CFLAGS, not CFLAGS
......................................................................


src/Makefile.am: fix build: 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(-)

Approvals:
  Jenkins Builder: Verified
  Holger Freyther: Looks good to me, approved



diff --git a/src/Makefile.am b/src/Makefile.am
index 692b699..d8fceca 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -26,17 +26,17 @@
 if HAVE_SSE3
 libosmocore_la_SOURCES += conv_acc_sse.c
 if HAVE_SSE4_1
-conv_acc_sse.lo : CFLAGS += -msse3 -msse4.1
+conv_acc_sse.lo : AM_CFLAGS += -msse3 -msse4.1
 else
-conv_acc_sse.lo : CFLAGS += -msse3
+conv_acc_sse.lo : AM_CFLAGS += -msse3
 endif
 
 if HAVE_AVX2
 libosmocore_la_SOURCES += conv_acc_sse_avx.c
 if HAVE_SSE4_1
-conv_acc_sse_avx.lo : CFLAGS += -msse3 -mavx2 -msse4.1
+conv_acc_sse_avx.lo : AM_CFLAGS += -msse3 -mavx2 -msse4.1
 else
-conv_acc_sse_avx.lo : CFLAGS += -msse3 -mavx2
+conv_acc_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: merged
Gerrit-Change-Id: I0628a9c739cded771605f5c55df7f21cb07beb3b
Gerrit-PatchSet: 3
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list