Skip to content

Commit 365ce99

Browse files
EmbeddedAndroidShuah Khan
authored andcommitted
selftest/mount: 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>
1 parent 52dd557 commit 365ce99

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tools/testing/selftests/mount/Makefile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Makefile for mount selftests.
2-
2+
CFLAGS = -Wall \
3+
-O2
34
all: unprivileged-remount-test
45

56
unprivileged-remount-test: unprivileged-remount-test.c
6-
gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test
7+
$(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test
78

89
include ../lib.mk
910

0 commit comments

Comments
 (0)