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:
Zhangjin Wu
2023-08-12 04:30:25 +08:00
committed by Willy Tarreau
parent dcb677c3d3
commit 418c846821
+1 -1
View File
@@ -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