From patchwork Sun Aug 27 08:00:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13366856 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EFA4C83F01 for ; Sun, 27 Aug 2023 08:00:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbjH0IA2 (ORCPT ); Sun, 27 Aug 2023 04:00:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbjH0IAX (ORCPT ); Sun, 27 Aug 2023 04:00:23 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 356DF103; Sun, 27 Aug 2023 01:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1693123218; bh=Xgp/Sfptd9jpyjywWiXrXHLawX5jayOTlAK64aJOzLU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=X9WCaDQf4Tfr0YCmu7ts7jm3kV5QvmyDN0khLtyGT2s6P95DbAqIpZtgyRsUjtIen 1cWaMKep/dcQ6gTcNyn1rrfFpa0XlDTzQOPOSyvnNRea6PIp7lbnWTkBZ6ehyx2KeO Fv5M3PcojyayfeRKjub3z6UaPNMlYvCgWpamJhPE= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Sun, 27 Aug 2023 10:00:16 +0200 Subject: [PATCH 2/2] selftests/nolibc: use -nostdinc for nolibc-test MIME-Version: 1.0 Message-Id: <20230827-nolibc-nostdinc-v1-2-995d1811f1f3@weissschuh.net> References: <20230827-nolibc-nostdinc-v1-0-995d1811f1f3@weissschuh.net> In-Reply-To: <20230827-nolibc-nostdinc-v1-0-995d1811f1f3@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: Zhangjin Wu , Yuan Tan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, =?utf-8?q?Th?= =?utf-8?q?omas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1693123218; l=849; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Xgp/Sfptd9jpyjywWiXrXHLawX5jayOTlAK64aJOzLU=; b=e+5oh3RLYQrYqQIl6FKZtTp9qmBx8KUiN0KEC0/m/op0j/QvrBueqx9+kYU5R4io/Wnf5X88I p348cBu0iM5CUfQJcAG8CxBdtWIt8zoxmbbCdSfW7TQUzwwNjxil0Dc X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Avoid any accidental reliance on system includes. Signed-off-by: Thomas Weißschuh --- 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 $@ \