Re: Linking against libgcc.a on GNU/Linux

2019-03-14 Thread Florian Weimer
* Florian Weimer: > * Joseph Myers: > >> On Wed, 13 Mar 2019, Florian Weimer wrote: >> >>> Would it be possible to turn libgcc_s.so into a linker script that links >>> against libgcc.a and libgcc_s.so.1, and teach g++ not to link against >>> libgcc.a explicitly anymore? >> >> It is already a linke

Re: Linking against libgcc.a on GNU/Linux

2019-03-14 Thread Florian Weimer
* Joseph Myers: > On Wed, 13 Mar 2019, Florian Weimer wrote: > >> Would it be possible to turn libgcc_s.so into a linker script that links >> against libgcc.a and libgcc_s.so.1, and teach g++ not to link against >> libgcc.a explicitly anymore? > > It is already a linker script on platforms using t

Re: Linking against libgcc.a on GNU/Linux

2019-03-13 Thread Joseph Myers
On Wed, 13 Mar 2019, Florian Weimer wrote: > Would it be possible to turn libgcc_s.so into a linker script that links > against libgcc.a and libgcc_s.so.1, and teach g++ not to link against > libgcc.a explicitly anymore? It is already a linker script on platforms using t-slibgcc-libgcc in libgcc

Linking against libgcc.a on GNU/Linux

2019-03-13 Thread Florian Weimer
Would it be possible to turn libgcc_s.so into a linker script that links against libgcc.a and libgcc_s.so.1, and teach g++ not to link against libgcc.a explicitly anymore? I'm suggesting this because libtool uses -nostdlib when linking shared objects in C++ mode, and does not link against -lgcc, o