This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: Use $(COMPILER) to build objects

Joseph S. Myers 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 did think about writing a patch for that at one point.  OTOH, maybe rather
than having a -static-LANGRUNTIME for every language, maybe we want a flag
that modifies -static to link shared against libc/whatever system libs.  Or to
put it the other way round, maybe we want a generic "-static-runtime-libs" flag.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]