From patchwork Wed Feb 22 12:34:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yash Shinde X-Patchwork-Id: 60517 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp550532wrd; Wed, 22 Feb 2023 04:35:17 -0800 (PST) X-Google-Smtp-Source: AK7set+Z3iC9B79wPnOHq0ded6SlRS5qNguqWunnOqajqnDOmFEyMqWQhIm5GK8LqIOSR7iqS0Tq X-Received: by 2002:a17:906:29cc:b0:884:9217:4536 with SMTP id y12-20020a17090629cc00b0088492174536mr16101478eje.64.1677069317232; Wed, 22 Feb 2023 04:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677069317; cv=none; d=google.com; s=arc-20160816; b=n58jhqNzIK9qItSkUXlG7DsUze0gOHZZDrvf5/Phf5KpKtdDVegQeuNHuHMeA2EsbU ydNbJVnVWn8agLV8+zZSsbJ7y/WpCB/KdzZG/OLHdfZPsEsME2xNkQXjyIVLXj+kzd0i 5hmcP4eB2leZe2OzO8oigd44zRT87JY1OzKnV9LcFM53KS7eK2lw0Sc09MA96qsDILnt qb3DcSjCBMp6pg8s5XAjaS5nQ96FrCpf5rOpeobu0ZOo/8depN2BQu5RK0+k8u/FKAvh slopfxseVLpLygRja8M0oJt3eFJGOzd7aDAon1VIKf3dX0TvV+iZ4mkGQvCmZWjNd0gu p/+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=WiPPK7zjGMkCykKFgaCP0qD2ZcgHvddUMF3b6t4gXL4=; b=yrRCwyzcQi7GYmS3GpAdc4L30bLfZcsgJJbHQVJkDfrUU2d08sd+YvyvOz2OYv0eXy E95eKzzx5UCjaF/6Z0GhPRSugT14g44QE9iEFPJ5Ga38SrVT5GTUfGuTsZ5x60+PiSQr 1FiIsPbk7+FRTet/W9wEkaId/qqx5PaY987zUHHjiHICTaY6BGz3PJxax6eKeLaWIvcm xjN0YnxlhbLiDMAA+qVPqW+EtLGMptyE6egFlFOWb+kmmykNr7hgxeHnY1Dh5lccCgNA cb1fJ2FUjjNtTt1HT8gsL//fjbrXhiCWqklBKNGZUpU5xJ2LE3c5sRLnS9BqR2lXzdtM rCpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b="qC/8tElc"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=windriver.com Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ka6-20020a170907920600b008e1990b6430si3376217ejb.24.2023.02.22.04.35.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 04:35:17 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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=@windriver.com header.s=PPS06212021 header.b="qC/8tElc"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=windriver.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 447193857C4F for ; Wed, 22 Feb 2023 12:35:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-0064b401.pphosted.com (mx0a-0064b401.pphosted.com [205.220.166.238]) by sourceware.org (Postfix) with ESMTPS id 338003858D33 for ; Wed, 22 Feb 2023 12:34:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 338003858D33 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=windriver.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=ala-lpggp3.wrs.com Received: from pps.filterd (m0250810.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31MCBwAj007614; Wed, 22 Feb 2023 04:34:42 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PPS06212021; bh=WiPPK7zjGMkCykKFgaCP0qD2ZcgHvddUMF3b6t4gXL4=; b=qC/8tElcJu5Uya1gk7qZlFR3pub0/t7SJA170cKuWZgjso4VXqGEGnGMeu31/SjgaJMB mStbetJcbvfFFJGSZR4EdOLGtC4xB/jCVFp2eMkgXuM3RoxCmR7Gq6MjyuFLoVMRlnDp B61iSdQAWCvL09kGly1tp2FreDvNcNL2DFId1ZvyPEHXqYEVXrisQy5koFIx2SLksjpi d+acMm4LsmlXKHoi/1JcPDjEcpQwZ8YQ2+NiwluSz6CSYOjgxgvBlKsh+XwmVkbbANwI kineN9QsB5F0dCe19lVjLkhGVIrYCtJTN3I07l7PwWY3NO2nyKNiHl0ltwDoC354Kh3q 5w== Received: from ala-exchng02.corp.ad.wrs.com (unknown-82-254.windriver.com [147.11.82.254]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3nttu6un5k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 22 Feb 2023 04:34:42 -0800 Received: from ALA-EXCHNG02.corp.ad.wrs.com (147.11.82.254) by ALA-EXCHNG02.corp.ad.wrs.com (147.11.82.254) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.18; Wed, 22 Feb 2023 04:34:41 -0800 Received: from ala-lpggp3.wrs.com (147.11.136.210) by ALA-EXCHNG02.corp.ad.wrs.com (147.11.82.254) with Microsoft SMTP Server id 15.1.2507.18 via Frontend Transport; Wed, 22 Feb 2023 04:34:41 -0800 Received: by ala-lpggp3.wrs.com (Postfix, from userid 23306) id 58D4890340E; Wed, 22 Feb 2023 04:34:41 -0800 (PST) From: Yash Shinde To: CC: , , Subject: [PATCH] Pass CXXFLAGS_FOR_BUILD to avoid build failure errors. Date: Wed, 22 Feb 2023 04:34:11 -0800 Message-ID: <20230222123411.419584-1-Yash.Shinde@windriver.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: SAEJekJ5hY0AkzMWndTzoBdB8fUxthbq X-Proofpoint-GUID: SAEJekJ5hY0AkzMWndTzoBdB8fUxthbq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-22_05,2023-02-22_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 clxscore=1015 mlxlogscore=629 mlxscore=0 lowpriorityscore=0 priorityscore=1501 spamscore=0 malwarescore=0 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302220111 X-Spam-Status: No, score=-13.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, NO_DNS_FOR_FROM, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, 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: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758534636398231257?= X-GMAIL-MSGID: =?utf-8?q?1758534636398231257?= From: Richard Purdie If CXXFLAGS contains something unsupported by the build CXX, we see build failures (e.g. using -fmacro-prefix-map for the target). ChangeLog: * Makefile.in: Regenerate. * Makefile.tpl: Add missing CXXFLAGS_FOR_BUILD overrides. Signed-off-by: Richard Purdie Signed-off-by: Yash Shinde --- Makefile.in | 2 ++ Makefile.tpl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Makefile.in b/Makefile.in index 06a9398e172..4b0069b257c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -178,6 +178,7 @@ BUILD_EXPORTS = \ # built for the build system to override those in BASE_FLAGS_TO_PASS. EXTRA_BUILD_FLAGS = \ CFLAGS="$(CFLAGS_FOR_BUILD)" \ + CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ LDFLAGS="$(LDFLAGS_FOR_BUILD)" # This is the list of directories to built for the host system. @@ -210,6 +211,7 @@ HOST_EXPORTS = \ CPP_FOR_BUILD="$(CPP_FOR_BUILD)"; export CPP_FOR_BUILD; \ CPPFLAGS_FOR_BUILD="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS_FOR_BUILD; \ CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \ + CXXFLAGS_FOR_BUILD="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS_FOR_BUILD; \ DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ DSYMUTIL="$(DSYMUTIL)"; export DSYMUTIL; \ LD="$(LD)"; export LD; \ diff --git a/Makefile.tpl b/Makefile.tpl index dfbd74b68f8..419b332953b 100644 --- a/Makefile.tpl +++ b/Makefile.tpl @@ -181,6 +181,7 @@ BUILD_EXPORTS = \ # built for the build system to override those in BASE_FLAGS_TO_PASS. EXTRA_BUILD_FLAGS = \ CFLAGS="$(CFLAGS_FOR_BUILD)" \ + CXXFLAGS="$(CXXFLAGS_FOR_BUILD)" \ LDFLAGS="$(LDFLAGS_FOR_BUILD)" # This is the list of directories to built for the host system. @@ -213,6 +214,7 @@ HOST_EXPORTS = \ CPP_FOR_BUILD="$(CPP_FOR_BUILD)"; export CPP_FOR_BUILD; \ CPPFLAGS_FOR_BUILD="$(CPPFLAGS_FOR_BUILD)"; export CPPFLAGS_FOR_BUILD; \ CXX_FOR_BUILD="$(CXX_FOR_BUILD)"; export CXX_FOR_BUILD; \ + CXXFLAGS_FOR_BUILD="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS_FOR_BUILD; \ DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \ DSYMUTIL="$(DSYMUTIL)"; export DSYMUTIL; \ LD="$(LD)"; export LD; \