lkml.org 
[lkml]   [2023]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH nolibc 05/19] selftests/nolibc: use -nostdinc for nolibc-test
    Date
    From: Thomas Weißschuh <linux@weissschuh.net>

    Avoid any accidental reliance on system includes.

    Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
    Signed-off-by: Willy Tarreau <w@1wt.eu>
    ---
    tools/testing/selftests/nolibc/Makefile | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile
    index dfe66776a331..689658f81a19 100644
    --- a/tools/testing/selftests/nolibc/Makefile
    +++ b/tools/testing/selftests/nolibc/Makefile
    @@ -170,7 +170,7 @@ sysroot/$(ARCH)/include:
    ifneq ($(NOLIBC_SYSROOT),0)
    nolibc-test: nolibc-test.c sysroot/$(ARCH)/include
    $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
    - -nostdlib -static -Isysroot/$(ARCH)/include $< -lgcc
    + -nostdlib -nostdinc -static -Isysroot/$(ARCH)/include $< -lgcc
    else
    nolibc-test: nolibc-test.c
    $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
    --
    2.40.1
    \
     
     \ /
      Last update: 2023-10-12 21:33    [W:2.890 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site