Explorar o código

selftest/mqueue: enable cross compilation

Use the CC variable instead of hard coding gcc. Also clean up the compiler
options by creating a CFLAGS variable.

Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Tyler Baker %!s(int64=10) %!d(string=hai) anos
pai
achega
6886f41d88
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      tools/testing/selftests/mqueue/Makefile

+ 4 - 2
tools/testing/selftests/mqueue/Makefile

@@ -1,6 +1,8 @@
+CFLAGS = -O2
+
 all:
-	gcc -O2 mq_open_tests.c -o mq_open_tests -lrt
-	gcc -O2 -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
+	$(CC) $(CFLAGS) mq_open_tests.c -o mq_open_tests -lrt
+	$(CC) $(CFLAGS) -o mq_perf_tests mq_perf_tests.c -lrt -lpthread -lpopt
 
 include ../lib.mk