From patchwork Thu Aug 31 16:09:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boulenguez X-Patchwork-Id: 137316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c792:0:b0:3f2:4152:657d with SMTP id b18csp344967vqu; Thu, 31 Aug 2023 09:10:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGYyk9b8913/ue03jxy33JBm7/PUi3ISqovEVFW3Hyk2iXk5/DMgBCa5Q7pUKjpbNg/5x4s X-Received: by 2002:a17:907:2bf2:b0:9a1:c00e:60cd with SMTP id gv50-20020a1709072bf200b009a1c00e60cdmr4128739ejc.15.1693498234909; Thu, 31 Aug 2023 09:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693498234; cv=none; d=google.com; s=arc-20160816; b=P+tZ8NEn9Mr3VsM0PjkoaTXv7loBRVmRRmH1APvVNHBh9DqYmKoH/AJYNLhorpzubY vaf1XV1DZ9I8IX9L1UYVPHV1tCtvfMwNHbbp/81hu+ENoRmZefSAH8mnkSP4KhZm5JRn UMy/vo4vFDxLtCrfqYJJ6lSWptqYvZShmy8YZWId0KvXr2qFd37mQ7zLozfN5CIFdrAb ncDovxJ/YR4E1hhfcIPwc16/lM2OtlYeCgBaGElNe7oQwFdoDClL/coCrdVJGWanVrlF gWQvokma5dp1EVaIk4E8EVdLbFCyHkfGQxNNmbRQOnQDozsEy/kO8fP8pDBzCpvuYcp+ 129w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=N0J+u4lQO+IEm221H/SYfeQIHlJubxRonnyKppcKGCE=; fh=jO6AtcMK/S1NFyPLDDShRUvb9/d43SKEaLNizPHBstw=; b=P7vnXRgBymRFUKhiQH+PNqkQZwRK08ICuTEMCvp+zHOED/Ri7oOQ/1s1+YDrMzmijf 1Gs/Huo+SJtSrOgVI6oHez5WwY3hR4dbLNAFCTeUlMXi0VNqDXwBc/NxEOixnHMOLBu/ aQ98cccpMKANZhebuZTM3IJ4pHZmucCz0xcoUiYr/G5F09mNRwWklg9OxFVgEQe57EMF AJ4wqWgi/LVKAFjiGoYY4l6pIFlKNyB6wP8X6DMtaGjQSKkomJ1AEZouotjHGVUzKxSi 6EEUhX2j3HR/VTRcB/cPyid7tWe2nvj/LsF1hKx1L+69nOtotr33wL6/n15Gi8WHLka9 r7Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=mJ1Oyu+J; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ss18-20020a170907c01200b009a1e73f2b52si1157155ejc.717.2023.08.31.09.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Aug 2023 09:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=mJ1Oyu+J; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85F0A3858D37 for ; Thu, 31 Aug 2023 16:10:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85F0A3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693498233; bh=N0J+u4lQO+IEm221H/SYfeQIHlJubxRonnyKppcKGCE=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=mJ1Oyu+JrDzKCx3hoRwQeq8QqF5EI6lQ7KWQv22FDJDWQztLPVzhDcbyEsqXd2c44 zMggfpbeAqiBezZvBatbqJcBlYk390qlcnrYZopWpfgdxKwPMzBKsIQbJUP8hrKcAK yIal8xhrfWavb9RqYVJIDAoBI5sYLa9U6pzqPopk= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [IPv6:2a01:e0c:1:1599::13]) by sourceware.org (Postfix) with ESMTPS id 925E83858D20 for ; Thu, 31 Aug 2023 16:10:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 925E83858D20 Received: from nicolasthinkpad.home (unknown [IPv6:2a01:e0a:91b:e980:f165:10f:69f1:8c00]) by smtp4-g21.free.fr (Postfix) with ESMTPS id C9C5319F5A8; Thu, 31 Aug 2023 18:09:56 +0200 (CEST) Received: from nicolas by nicolasthinkpad.home with local (Exim 4.96) (envelope-from ) id 1qbkF2-0005xV-1X; Thu, 31 Aug 2023 18:09:56 +0200 To: binutils@sourceware.org Cc: Nicolas Boulenguez Subject: [PATCH 2/2] Apply CPPFLAGS_FOR_BUILD to bfd/chew, syslex_wrap and sysinfo Date: Thu, 31 Aug 2023 18:09:09 +0200 Message-Id: <20230831160909.22898-1-nicolas.boulenguez@free.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-13.1 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Nicolas Boulenguez via Binutils From: Nicolas Boulenguez Reply-To: Nicolas Boulenguez Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775761605438496795 X-GMAIL-MSGID: 1775761605438496795 From: Nicolas Boulenguez --- bfd/doc/local.mk | 2 +- binutils/Makefile.am | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bfd/doc/local.mk b/bfd/doc/local.mk index d80f7041..d11666ff 100644 --- a/bfd/doc/local.mk +++ b/bfd/doc/local.mk @@ -83,7 +83,7 @@ MKDOC = %D%/chew$(EXEEXT_FOR_BUILD) $(MKDOC): %D%/chew.stamp ; @true %D%/chew.stamp: $(srcdir)/%D%/chew.c %D%/$(am__dirstamp) $(AM_V_CCLD)$(CC_FOR_BUILD) -o %D%/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \ - $(LDFLAGS_FOR_BUILD) \ + $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \ -I. -I$(srcdir) -I%D% -I$(srcdir)/../include -I$(srcdir)/../intl -I../intl \ $(srcdir)/%D%/chew.c && \ $(SHELL) $(srcdir)/../move-if-change \ diff --git a/binutils/Makefile.am b/binutils/Makefile.am index 0fa76f62..8e82fc53 100644 --- a/binutils/Makefile.am +++ b/binutils/Makefile.am @@ -328,13 +328,13 @@ sysinfo$(EXEEXT_FOR_BUILD): sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@ $(AM_V_CCLD)$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.@OBJEXT@ syslex_wrap.@OBJEXT@ syslex_wrap.@OBJEXT@: syslex_wrap.c syslex.c sysinfo.h config.h - $(AM_V_CC)$(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c + $(AM_V_CC)$(CC_FOR_BUILD) -c -I. -I$(srcdir) $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/syslex_wrap.c sysinfo.@OBJEXT@: sysinfo.c $(AM_V_CC)if [ -r sysinfo.c ]; then \ - $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \ + $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(NO_WERROR) sysinfo.c ; \ else \ - $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \ + $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(CPPFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \ fi bin2c$(EXEEXT_FOR_BUILD): bin2c.c