From: Tyler Baker Date: Wed, 1 Apr 2015 23:20:17 +0000 (-0700) Subject: selftest/mount: enable cross compilation X-Git-Tag: v4.1-rc1~190^2~4 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=365ce9997b40c763413e965bd6a3a87dfce01f74;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/mount/Makefile b/tools/testing/selftests/mount/Makefile index a5b367f032ba0..95580a97326e1 100644 --- a/tools/testing/selftests/mount/Makefile +++ b/tools/testing/selftests/mount/Makefile @@ -1,9 +1,10 @@ # Makefile for mount selftests. - +CFLAGS = -Wall \ + -O2 all: unprivileged-remount-test unprivileged-remount-test: unprivileged-remount-test.c - gcc -Wall -O2 unprivileged-remount-test.c -o unprivileged-remount-test + $(CC) $(CFLAGS) unprivileged-remount-test.c -o unprivileged-remount-test include ../lib.mk