how to use different linker
satyaakam goswami
satyaakam@gmail.com
Wed Nov 8 03:59:00 GMT 2006
On 11/7/06, Kai Ruottu <karuottu@mbnet.fi> wrote:
> Andrew Haley wrote:
> > satyaakam goswami writes:
> >
> > > how can i use a different version of ld than what gcc was built
> > > with natively.
> >
> > We don't support that. Different linkers have different arguments, so
> > gcc needs to know which linker it will be using.
> >
> Maybe the word "different" was wrong and the aim was to ask about
> "similar but
> another" ld....
>
> In that case the 'gcc -print-search-dirs' will help, the "programs"
> search path shows
> quite many built-in search directories where that another ld could be
> put and it being
> found before the native one, usually in '/usr/bin'. But there are also
> options/switches
> like '-B' to point to some "use this time" linker....
thanks for the reply i could not understand the last line can you
please eloborate , yes i do understand ld will search the path , my
question is how to override that and point to a different linker at
link time.
Satya
More information about the Gcc-help
mailing list