Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1221422

[PATCH v3 2/5] selftests: mqueue: allow extra cflags

From Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Newsgroups linux.kernel
Subject [PATCH v3 2/5] selftests: mqueue: allow extra cflags
Date 2015-09-09 15:20 +0200
Message-ID <q6Ns8-48j-41@gated-at.bofh.it> (permalink)
References <q6Ns6-48j-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Change from = to += in order to allows the user to pass whatever
CFLAGS they wish(E.g. pass the proper headers and librareis
(popt.h and libpopt.so) in cross-compiling)

Suggested-by: Michael Ellermani <mpe@ellerman.id.au>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Acked-by: Michael Ellermani <mpe@ellerman.id.au>
---
 tools/testing/selftests/mqueue/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile
index 0e3b41e..ca8327f 100644
--- a/tools/testing/selftests/mqueue/Makefile
+++ b/tools/testing/selftests/mqueue/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -O2
+CFLAGS += -O2
 
 all:
 	$(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/5] kselftest improvement and cleanup Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-09 15:20 +0200
  [PATCH v3 4/5] selftests: change install command to rsync Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-09 15:20 +0200
  [PATCH v3 3/5] selftests: mqueue: simplify the Makefile Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-09 15:20 +0200
  [PATCH v3 1/5] selftests: rename jump label to static_keys Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-09 15:20 +0200
  [PATCH v3 2/5] selftests: mqueue: allow extra cflags Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-09 15:20 +0200
  [PATCH v3 5/5] selftests: exec: revert to default emit rule Bamvor Jian Zhang <bamvor.zhangjian@linaro.org> - 2015-09-09 15:20 +0200
  Re: [PATCH v3 0/5] kselftest improvement and cleanup Shuah Khan <shuahkh@osg.samsung.com> - 2015-09-15 01:00 +0200

csiph-web