public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] libstdc++: use lt_host_flags for libstdc++.la
@ 2020-09-16 13:16 JonY
  2020-10-20  2:03 ` Jonathan Yong
  2020-11-03  8:24 ` Jonathan Wakely
  0 siblings, 2 replies; 4+ messages in thread
From: JonY @ 2020-09-16 13:16 UTC (permalink / raw)
  To: Gcc Patch List, libstdc++


[-- Attachment #1.1.1: Type: text/plain, Size: 232 bytes --]

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?

[-- Attachment #1.1.2: 189efb9574652865e808b98b77b618712a60539e.patch --]
[-- Type: text/x-patch, Size: 941 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libstdc++: use lt_host_flags for libstdc++.la
  2020-09-16 13:16 [PATCH] libstdc++: use lt_host_flags for libstdc++.la JonY
@ 2020-10-20  2:03 ` Jonathan Yong
  2020-11-03  0:36   ` Jonathan Yong
  2020-11-03  8:24 ` Jonathan Wakely
  1 sibling, 1 reply; 4+ messages in thread
From: Jonathan Yong @ 2020-10-20  2:03 UTC (permalink / raw)
  To: Gcc Patch List, libstdc++


[-- Attachment #1.1.1: Type: text/plain, Size: 292 bytes --]

On 9/16/20 1:16 PM, JonY 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?
> 

Ping.

[-- Attachment #1.1.2: OpenPGP_0x713B5FE29C145D45_and_old_rev.asc --]
[-- Type: application/pgp-keys, Size: 8035 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libstdc++: use lt_host_flags for libstdc++.la
  2020-10-20  2:03 ` Jonathan Yong
@ 2020-11-03  0:36   ` Jonathan Yong
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Yong @ 2020-11-03  0:36 UTC (permalink / raw)
  To: Gcc Patch List, libstdc++


[-- Attachment #1.1.1: Type: text/plain, Size: 354 bytes --]

On 10/20/20 2:03 AM, Jonathan Yong wrote:
> On 9/16/20 1:16 PM, JonY 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?
>>
> 
> Ping.
Ping2.

[-- Attachment #1.1.2: OpenPGP_0x713B5FE29C145D45_and_old_rev.asc --]
[-- Type: application/pgp-keys, Size: 8035 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] libstdc++: use lt_host_flags for libstdc++.la
  2020-09-16 13:16 [PATCH] libstdc++: use lt_host_flags for libstdc++.la JonY
  2020-10-20  2:03 ` Jonathan Yong
@ 2020-11-03  8:24 ` Jonathan Wakely
  1 sibling, 0 replies; 4+ messages in thread
From: Jonathan Wakely @ 2020-11-03  8:24 UTC (permalink / raw)
  To: JonY; +Cc: Gcc Patch List, libstdc++

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
>





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-03  8:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 13:16 [PATCH] libstdc++: use lt_host_flags for libstdc++.la JonY
2020-10-20  2:03 ` Jonathan Yong
2020-11-03  0:36   ` Jonathan Yong
2020-11-03  8:24 ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).