PATCH RFA: Use $(COMPILER) to build objects

H.J. Lu hjl.tools@gmail.com
Thu May 21 14:46:00 GMT 2009


On Thu, May 21, 2009 at 7:42 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
> On Thu, 21 May 2009, Dave Korn wrote:
>
>> Joseph S. Myers wrote:
>>
>> >  (There is no -static-libstdc++ option
>> > so you can't readily make the C++ compiler link with static libstdc++ when
>> > desired.)
>>
>>   I must be misunderstanding what you're getting at; it's implied by plain old
>> -static I thought?  Certainly appears to WFM:
>
> The point is to create a portable binary (one that does not require shared
> libraries from the compiler used to build it) by linking with static
> libstdc++/gmp/mpfr/cloog/ppl but dynamic libc (glibc barely supports
> static linking and it's certainly a bad idea and does not help in making a
> portable binary).  While -static-libgcc and -static-libgfortran exist,
> -static-libstdc++ doesn't
>

I'd like to see -static-libstdc++:


-- 
H.J.



More information about the Gcc-patches mailing list