From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id DA585385480C for ; Tue, 3 Nov 2020 08:24:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DA585385480C Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-562-K2RzAWgGNneT19Np-kNB0w-1; Tue, 03 Nov 2020 03:24:51 -0500 X-MC-Unique: K2RzAWgGNneT19Np-kNB0w-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E82941084C8B; Tue, 3 Nov 2020 08:24:49 +0000 (UTC) Received: from localhost (unknown [10.33.36.7]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7F0615D9DD; Tue, 3 Nov 2020 08:24:49 +0000 (UTC) Date: Tue, 3 Nov 2020 08:24:48 +0000 From: Jonathan Wakely To: JonY <10walls@gmail.com> Cc: Gcc Patch List , libstdc++ Subject: Re: [PATCH] libstdc++: use lt_host_flags for libstdc++.la Message-ID: <20201103082448.GU503596@redhat.com> References: <38552260-93d1-f6a8-8eba-cb050e95b918@gmail.com> MIME-Version: 1.0 In-Reply-To: <38552260-93d1-f6a8-8eba-cb050e95b918@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline X-Spam-Status: No, score=-14.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libstdc++@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++ mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2020 08:24:55 -0000 On 16/09/20 13:16 +0000, JonY via Libstdc++ wrote: >For platforms like Mingw and Cygwin, cygwin refuses to generate the >shared library without using -no-undefined. > >Attached patch makes sure the right flags are used, since libtool is >already used to link libstdc++. > >Patch OK? I've pushed it to trunk myself now. Thanks. >From 4ba039687182fccd67e1170f89e259e1c4a58eeb Mon Sep 17 00:00:00 2001 >From: Jonathan Yong <10walls@gmail.com> >Date: Sun, 22 Mar 2020 09:56:58 +0800 >Subject: [PATCH 1/1] libstdc++: use lt_host_flags for libstdc++.la > >Signed-off-by: Jonathan Yong <10walls@gmail.com> >--- > libstdc++-v3/src/Makefile.am | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/libstdc++-v3/src/Makefile.am b/libstdc++-v3/src/Makefile.am >index a139adc81b3..498f533f3d3 100644 >--- a/libstdc++-v3/src/Makefile.am >+++ b/libstdc++-v3/src/Makefile.am >@@ -107,7 +107,7 @@ libstdc___la_DEPENDENCIES = \ > libstdc___la_LDFLAGS = \ > -version-info $(libtool_VERSION) ${version_arg} -lm > >-libstdc___la_LINK = $(CXXLINK) $(libstdc___la_LDFLAGS) >+libstdc___la_LINK = $(CXXLINK) $(libstdc___la_LDFLAGS) $(lt_host_flags) > > # Use special rules for compatibility-ldbl.cc compilation, as we need to > # pass -mlong-double-64. >-- >2.11.4.GIT >