Re: gcc without ld.so

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Bill Cunningham" <billcun@xxxxxxxxxxxxxx> writes:

>    Is there a way to build a compiler without the binaries when run
> not having to link with the dynamic linker? I wish to compile a new
> glibc and don't want the compiler I build it with to be dependant on
> it. Would the -static linker switch be what I'm looking for?

Yes: if you link with -static, then the dynamic linker will not be
required at runtime.  While glibc frowns on static linking, it should
work for a program like gcc.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux