public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Solaris falls back on CCS ld
@ 2003-04-29 14:04 Remko Troncon
  2003-04-29 14:44 ` John Love-Jensen
  0 siblings, 1 reply; 3+ messages in thread
From: Remko Troncon @ 2003-04-29 14:04 UTC (permalink / raw)
  To: gcc-help

Hi,

I am trying to compile a program on a Solaris 2.8 machine with gcc
3.2.1. I want GCC to use GNU ld instead of the default ccs/ld. The
manual dictates to use -B for this purpose, but this doesn't seem to be
enough. 

gcc, ld, and as are installed in /usr/local/gnu/bin. Running gcc gives
me the following output:
     my_machine$ gcc -v -B /usr/local/gnu/bin/ test.o

     Reading specs from
     /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
     Configured with: ../configure --disable-nls
     --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
     Thread model: posix
     gcc version 3.2.1
      /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/collect2
      -V -Y P,/usr/ccs/lib:/usr/lib -Qy
      /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/crt1.o
      /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/crti.o
      /usr/ccs/lib/values-Xa.o
      /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/crtbegin.o
      -L/usr/local/gnu/bin
      -L/usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1
      -L/usr/local/gnu/bin/../lib/gcc-lib
      -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1
      -L/usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/../../../../sparc-sun-solaris2.8/lib
      -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/../../../../sparc-sun-solaris2.8/lib
      -L/usr/ccs/bin -L/usr/ccs/lib
      -L/usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/../../..
      -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/../../..
      test.o -lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc
      /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/crtend.o
      /usr/local/gnu/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/crtn.o
      ld: Software Generation Utilities - Solaris Link Editors:
      5.8-1.281

Running gcc with the option -Wl,-E gives me the help screen of CCS ld,
which proves that it doesn't use the GNU ld. I tried it with or without
the space between -B path. The same command works perfectly on my Linux
machines, and it uses the compiler found in -B.

Can anyone help ?

thanks,
Remko

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Solaris falls back on CCS ld
  2003-04-29 14:44 ` John Love-Jensen
@ 2003-04-29 14:32   ` Remko Troncon
  0 siblings, 0 replies; 3+ messages in thread
From: Remko Troncon @ 2003-04-29 14:32 UTC (permalink / raw)
  To: John Love-Jensen; +Cc: gcc-help

> Have you tried changing your PATH to hold the location of the GNU ld before
> that of the location of CCS ld?  That's always worked for me.

Yes, this is the default on the machine in question.

cheers,
Remko

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Solaris falls back on CCS ld
  2003-04-29 14:04 Solaris falls back on CCS ld Remko Troncon
@ 2003-04-29 14:44 ` John Love-Jensen
  2003-04-29 14:32   ` Remko Troncon
  0 siblings, 1 reply; 3+ messages in thread
From: John Love-Jensen @ 2003-04-29 14:44 UTC (permalink / raw)
  To: Remko Troncon, gcc-help

Hi Remko,

Have you tried changing your PATH to hold the location of the GNU ld before
that of the location of CCS ld?  That's always worked for me.

--Eljay

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-29 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-29 14:04 Solaris falls back on CCS ld Remko Troncon
2003-04-29 14:44 ` John Love-Jensen
2003-04-29 14:32   ` Remko Troncon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).