From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050:0:465::102]) by sourceware.org (Postfix) with ESMTPS id 4CFD8385624F; Mon, 7 Aug 2023 11:20:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4CFD8385624F Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4RKDPX5mMrz9sRD; Mon, 7 Aug 2023 13:20:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1691407200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=e8m3e9UzHEWIalPiPCu3+0HTbxONUvimKg5zagYS+8U=; b=TAWBYqEbCboRyC/1sXbO5TQCSulVA/NzO92eUJn5Dw4as3B1dLl2SaXGDlcWKL6Vs4Hb9u 4IHyO93LwA/lE/WRUUcp5PXEr6pe07BUQsYX9L/ooEPjQbMRe9B/5FG6uQWCRVfyLNsnP6 uspOINmW6TxKwf24u7ncNVNYawnrP5B8k6EWIS4Embt3jemZtRV3iF0xFxrGulHaT6Xucn C/zLiGGKDCZddLysx7KWNCy/GObBx9Wu2ZV+7QsKlCeY09xGNhviYuOB+uIO4dfpc+C4qm 8joalCa3hCz9eFBUGLHbSlXau060oIDLFggOVkukYQD3xeowwBAkVOyFjP5oIQ== From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= To: gdb-patches@sourceware.org, binutils@sourceware.org Cc: Andreas Schwab Subject: [PATCH 44/45] Use substituted GDCFLAGS Date: Mon, 7 Aug 2023 13:07:47 +0200 Message-ID: <20230807111029.2320238-45-arsen@aarsen.me> In-Reply-To: <20230807111029.2320238-1-arsen@aarsen.me> References: <20230807111029.2320238-1-arsen@aarsen.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4RKDPX5mMrz9sRD X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_LOW,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 List-Id: From: Andreas Schwab Use the substituted value for GCDFLAGS instead of hardcoding $(CFLAGS) so that the subdir configure scripts use the configured value. * configure.ac (GDCFLAGS): Set default from ${CFLAGS}. * configure: Regenerate. --- configure | 1 + configure.ac | 1 + 2 files changed, 2 insertions(+) diff --git a/configure b/configure index 14cbcfc20b2..28f0913bdd4 100755 --- a/configure +++ b/configure @@ -13026,6 +13026,7 @@ fi +GDCFLAGS=${GDCFLAGS-${CFLAGS}} { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 diff --git a/configure.ac b/configure.ac index 861432a5b23..5d25dc864c3 100644 --- a/configure.ac +++ b/configure.ac @@ -3717,6 +3717,7 @@ AC_SUBST(CFLAGS) AC_SUBST(CXXFLAGS) AC_SUBST(GDC) AC_SUBST(GDCFLAGS) +GDCFLAGS=${GDCFLAGS-${CFLAGS}} AC_SUBST(PKG_CONFIG_PATH) GCC_PLUGIN_OPTION(PLUGIN_OPTION) -- 2.41.0