Commit 418c8468 authored by Zhangjin Wu's avatar Zhangjin Wu Committed by Willy Tarreau

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: default avatarZhangjin Wu <falcon@tinylab.org>
Fixes: cfb672f9 ("selftests/nolibc: add run-libc-test target")
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
parent dcb677c3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment