OSDN Git Service

selftests: mqueue: allow extra cflags
authorBamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Wed, 9 Sep 2015 13:06:26 +0000 (21:06 +0800)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 14 Sep 2015 22:42:55 +0000 (16:42 -0600)
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 Ellerman <mpe@ellerman.id.au>
Signed-off-by: Bamvor Jian Zhang <bamvor.zhangjian@linaro.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/mqueue/Makefile

index 0e3b41e..ca8327f 100644 (file)
@@ -1,4 +1,4 @@
-CFLAGS = -O2
+CFLAGS += -O2
 
 all:
        $(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt