From patchwork Tue Jun 28 14:14:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Pekka_Sepp=C3=A4nen?= X-Patchwork-Id: 55493 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3B1923945D24 for ; Tue, 28 Jun 2022 14:38:57 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by sourceware.org (Postfix) with ESMTPS id EEC15383905F for ; Tue, 28 Jun 2022 14:14:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org EEC15383905F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.mail.kapsi.fi Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kapsi.fi DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Subject:Content-Transfer-Encoding:Content-Type:Message-ID:To: From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=oD3ZHXf4C0kgutpFsMLb3rWXIgoGrEpB7Jt2sKhPhiM=; b=OvDoU2y1zTWyAitBw1MwdaxLZm KBPYZTEKUNT+WhYRYvEQhYzYKhOoVpFe6IWO2X3gL/oGUKlHpFWuVP/AQNEBiff45dLg7FIr5RGaM HSNJv2Fn1M3IVbvXAZ3DE4wM1uE2Nbv/fL8A+E9I2u0XxKibfW5O3QE3aQLnRcTnKLMM34aVK4gfc 2YH6zisWFqVzFQfhH+LmEOL21AOTgvBqiRcdFSA349ub/VtOHXbWD+oc7xDoX7FYRIORNeH//G4fh ixzw7W+vTCy9ofosKRCZPw4Z4hYwAJjPOjMymI5QL+5KhNZ8F91SrytYI/E6NKW2gCBrRI12zPN9r Ab5a+agg==; Received: from [2001:67c:1be8::200] (helo=roundcube.kapsi.fi) by mail.kapsi.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o6Byk-00AXjT-IO for gcc-patches@gcc.gnu.org; Tue, 28 Jun 2022 17:14:13 +0300 MIME-Version: 1.0 Date: Tue, 28 Jun 2022 17:14:09 +0300 From: =?utf-8?q?Pekka_Sepp=C3=A4nen?= To: gcc-patches@gcc.gnu.org Message-ID: X-Sender: pexu@gcc.mail.kapsi.fi X-SA-Exim-Connect-IP: 2001:67c:1be8::200 X-SA-Exim-Mail-From: pexu@gcc.mail.kapsi.fi X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Subject: [PATCH] lto: pass -pthread to AM_LDFLAGS [PR 106118] X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on mail.kapsi.fi) 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Move -pthread from configure.ac to Makefile.in so that it is passed to AM_LDFLAGS. lto-plugin/ChangeLog: * configure.ac: Move -pthread from here... * Makefile.am: ...to here. * configure: Regenerate. * Makefile.in: Likewise. --- lto-plugin/Makefile.am | 3 ++- lto-plugin/configure.ac | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lto-plugin/Makefile.am b/lto-plugin/Makefile.am index a96acc87ee2..81362eafc36 100644 --- a/lto-plugin/Makefile.am +++ b/lto-plugin/Makefile.am @@ -9,7 +9,8 @@ libexecsubdir := $(libexecdir)/gcc/$(real_target_noncanonical)/$(gcc_version)$(a AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS) AM_CFLAGS = @ac_lto_plugin_warn_cflags@ $(CET_HOST_FLAGS) -AM_LDFLAGS = @ac_lto_plugin_ldflags@ +# The plug-in depends on pthreads. +AM_LDFLAGS = -pthread @ac_lto_plugin_ldflags@ AM_LIBTOOLFLAGS = --tag=disable-static override CFLAGS := $(filter-out -fsanitize=address -fsanitize=hwaddress,$(CFLAGS)) override LDFLAGS := $(filter-out -fsanitize=address -fsanitize=hwaddress,$(LDFLAGS)) diff --git a/lto-plugin/configure.ac b/lto-plugin/configure.ac index 75cf46ac5c7..c2ec512880f 100644 --- a/lto-plugin/configure.ac +++ b/lto-plugin/configure.ac @@ -13,9 +13,6 @@ AC_PROG_CC AC_SYS_LARGEFILE ACX_PROG_CC_WARNING_OPTS([-Wall], [ac_lto_plugin_warn_cflags]) -# The plug-in depends on pthreads -LDFLAGS="-pthread" - # Check whether -static-libgcc is supported. saved_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -static-libgcc"