How to use GNU linker with egcs1.1?

Manfred Hollstein manfred@s-direktnet.de
Wed Sep 30 04:44:00 GMT 1998


On Tue, 29 September 1998, 18:55:46, drone@reksoft.ru wrote:

 > Hi!
 > 
 > Recently we've decided to switch to egcs1.1 (mostly because of the use of namespaces).
 > 
 > Also we would like to link applications with GNU linker (we have it installed) because it takes less time and disk space.
 > 
 > But I cannot make gcc invoke GNU linker. It always invokes the system linker '/usr/ccs/bin/ld' in spite of the compiler's building with the '--with-gnu-ld' option.
 > 
 > Can anyone help? What shall I do to make gcc invoke GNU linker? How gcc knows what linker it has to invoke?
 > 
 > We run Solaris 2.5.1 on Sun Sparc stations here. If you need any more information please let me know..
 > 
 > Thanks in advance,
 > 
 > Pavel.
 > 
 > PS: Please mail your replies at drone@reksoft.ru because I'm not subscribed to this mail list.
 > Tanks again.
 > 

This is covered by the "egcs" FAQ < http://egcs.cygnus.com/faq.html#gas >;
while it refers to GNU as, it's still valid for GNU ld.

manfred



More information about the Gcc-bugs mailing list