From: Tyler Baker Date: Wed, 1 Apr 2015 23:20:20 +0000 (-0700) Subject: selftest/mqueue: enable cross compilation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6886f41d885e1a0c0e95069e3c73d27eed89d8ed;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/mqueue/Makefile b/tools/testing/selftests/mqueue/Makefile index 6ca7261b55dc..0e3b41eb85cd 100644 --- a/tools/testing/selftests/mqueue/Makefile +++ b/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