From patchwork Sun Mar 9 06:00:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaotian Wu X-Patchwork-Id: 58520 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CA4FC28B30 for ; Sun, 9 Mar 2025 06:01:08 +0000 (UTC) Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.10952.1741500057099942795 for ; Sat, 08 Mar 2025 22:00:57 -0800 Authentication-Results: mx.groups.io; dkim=none (message not signed); spf=pass (domain: loongson.cn, ip: 114.242.206.163, mailfrom: wuxiaotian@loongson.cn) Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8AxaeCXLs1nPZqPAA--.49779S3; Sun, 09 Mar 2025 14:00:55 +0800 (CST) Received: from localhost.localdomain (unknown [192.168.100.1]) by front1 (Coremail) with SMTP id qMiowMBxb8eSLs1nJr0_AA--.40372S4; Sun, 09 Mar 2025 14:00:55 +0800 (CST) From: Xiaotian Wu To: yocto-patches@lists.yoctoproject.org Cc: Xiaotian Wu Subject: [pseudo] [PATCH 2/3] Makefile.in: Use ARCH_FLAGS instead of -m32 and -m64 Date: Sun, 9 Mar 2025 14:00:38 +0800 Message-ID: <20250309060039.454124-3-wuxiaotian@loongson.cn> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250309060039.454124-1-wuxiaotian@loongson.cn> References: <20250309060039.454124-1-wuxiaotian@loongson.cn> MIME-Version: 1.0 X-CM-TRANSID: qMiowMBxb8eSLs1nJr0_AA--.40372S4 X-CM-SenderInfo: 5zx0xtprwlt0o6or00hjvr0hdfq/1tbiAQEQCGfMyEwCKQABsd X-Coremail-Antispam: 1Uk129K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1QVy3UUUUU== List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sun, 09 Mar 2025 06:01:08 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/1168 Gcc on Loongarch does not support this -m32 and -m64 options. we can use the $(ARCH_CLAGS) variable instead. Signed-off-by: Xiaotian Wu --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index 48fdbd2..0bb8a88 100644 --- a/Makefile.in +++ b/Makefile.in @@ -157,10 +157,10 @@ pseudo_wrappers.o: $(GUTS) pseudo_wrappers.c pseudo_wrapfuncs.c pseudo_wrapfuncs $(CC) -fno-strict-aliasing $(CFLAGS) $(CFLAGS_PSEUDO) -D_GNU_SOURCE -c -o pseudo_wrappers.o pseudo_wrappers.c offsets32: - $(CC) -m32 -o offsets32 offsets.c + $(CC) $(ARCH_FLAGS) -o offsets32 offsets.c offsets64: - $(CC) -m64 -o offsets64 offsets.c + $(CC) $(ARCH_FLAGS) -o offsets64 offsets.c $(PSEUDO_PROFILE): pseudo_profile | $(BIN) cp pseudo_profile $(BIN)