Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/nolibc: scope custom flags to the nolibc-test target

A new target for 'libc-test' is going to be added which should not be
affected by these options.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260106-nolibc-selftests-v1-2-f82101c2c505@weissschuh.net

+2 -6
+2 -6
tools/testing/selftests/nolibc/Makefile
··· 9 9 10 10 include Makefile.include 11 11 12 - CFLAGS = -nostdlib -nostdinc -static \ 12 + $(OUTPUT)/nolibc-test: CFLAGS = -nostdlib -nostdinc -static \ 13 13 -isystem $(top_srcdir)/tools/include/nolibc -isystem $(top_srcdir)/usr/include \ 14 14 $(CFLAGS_NOLIBC_TEST) 15 - 16 - ifeq ($(LLVM),) 17 - LDLIBS := -lgcc 18 - endif 19 - 15 + $(OUTPUT)/nolibc-test: LDLIBS = $(if $(LLVM),,-lgcc) 20 16 $(OUTPUT)/nolibc-test: nolibc-test.c nolibc-test-linkage.c | headers 21 17 22 18 help: