selftests/nolibc: libc-test: use HOSTCC instead of CC
libc-test is mainly added to compare the behavior of nolibc to the
system libc, it is meaningless and error-prone with cross compiling.
Let's use HOSTCC instead of CC to avoid wrongly use cross compiler when
CROSS_COMPILE is passed or customized.
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Fixes: cfb672f94f ("selftests/nolibc: add run-libc-test target")
Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
committed by
Willy Tarreau
parent
dcb677c3d3
commit
418c846821
@@ -178,7 +178,7 @@ nolibc-test: nolibc-test.c
|
||||
endif
|
||||
|
||||
libc-test: nolibc-test.c
|
||||
$(QUIET_CC)$(CC) -o $@ $<
|
||||
$(QUIET_CC)$(HOSTCC) -o $@ $<
|
||||
|
||||
# local libc-test
|
||||
run-libc-test: libc-test
|
||||
|
||||
Reference in New Issue
Block a user