From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by sourceware.org (Postfix) with ESMTPS id B72A438582B1 for ; Wed, 29 Jun 2022 09:43:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B72A438582B1 Received: by mail-qk1-x72a.google.com with SMTP id r138so11507409qke.13 for ; Wed, 29 Jun 2022 02:43:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ADplVe+AH64vGCBxt/Ui9Y/ZnWV8O1jLUjQWk9q+f0c=; b=qwtkFGf5hzxFcsPappCiINDZXEvuNT/E5d5pvm0HyiE5n2AatxnzbVoPjYQQh6Qe4u 9a0Ao7g856lEpcWhoun40KqHoNPOVgU5O4MIGjXTCLjNd8iYknnZu5ouhQxyLrBVqq8u pTKboS+w/40HngRV9yMb88fVOrso9p/IQsdBXg9lfRKj9BYW9IJl6OmgFxZab2BsTURw NVrt0tlwri23anGy9I+7P5jDOIJ/8ESy+f2wDI4A4FFsqFsFochUS9pql5QhUEdKCRmU ZhywlGRa9m5J/QUoraELU8luaorvmTDgI3/wzYUIBPKwI4Fd5Ic3JrqpEcduF+zWu69s BpEA== X-Gm-Message-State: AJIora/LUhek5vIsq3K0oJcICHobEXKumBzXw2f7IpkmJe5S0DuIjVcB LfF0+oSxsGYaJvntMrRMK1YLMhMlsVcc/CAY/hEfcK3z X-Google-Smtp-Source: AGRyM1sv0W6FTc0Wdk+0wA1/jvvZmZFfkDzFWZ6ofq0vOceGCDMon/+ZypK0z8jE3LA2q1ax0R5LCr7cz+1UNDPpqc8= X-Received: by 2002:a05:620a:1919:b0:6af:20e6:346c with SMTP id bj25-20020a05620a191900b006af20e6346cmr1244172qkb.627.1656495830032; Wed, 29 Jun 2022 02:43:50 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Biener Date: Wed, 29 Jun 2022 11:43:38 +0200 Message-ID: Subject: Re: [PATCH] lto: pass -pthread to AM_LDFLAGS [PR 106118] To: =?UTF-8?Q?Pekka_Sepp=C3=A4nen?= Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , X-List-Received-Date: Wed, 29 Jun 2022 09:43:55 -0000 On Tue, Jun 28, 2022 at 5:19 PM Pekka Sepp=C3=A4nen wrote: > > Move -pthread from configure.ac to Makefile.in so that it is passed to > AM_LDFLAGS. OK > 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 :=3D > $(libexecdir)/gcc/$(real_target_noncanonical)/$(gcc_version)$(a > > AM_CPPFLAGS =3D -I$(top_srcdir)/../include $(DEFS) > AM_CFLAGS =3D @ac_lto_plugin_warn_cflags@ $(CET_HOST_FLAGS) > -AM_LDFLAGS =3D @ac_lto_plugin_ldflags@ > +# The plug-in depends on pthreads. > +AM_LDFLAGS =3D -pthread @ac_lto_plugin_ldflags@ > AM_LIBTOOLFLAGS =3D --tag=3Ddisable-static > override CFLAGS :=3D $(filter-out -fsanitize=3Daddress > -fsanitize=3Dhwaddress,$(CFLAGS)) > override LDFLAGS :=3D $(filter-out -fsanitize=3Daddress > -fsanitize=3Dhwaddress,$(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=3D"-pthread" > - > # Check whether -static-libgcc is supported. > saved_LDFLAGS=3D"$LDFLAGS" > LDFLAGS=3D"$LDFLAGS -static-libgcc" > -- > 2.34.1