From: Remko Troncon <remko.troncon@cs.kuleuven.ac.be>
To: gcc-help@gcc.gnu.org
Subject: Solaris falls back on CCS ld
Date: Tue, 29 Apr 2003 14:04:00 -0000 [thread overview]
Message-ID: <20030429140436.GA14509@cs.kuleuven.ac.be> (raw)
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
next reply other threads:[~2003-04-29 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-29 14:04 Remko Troncon [this message]
2003-04-29 14:44 ` John Love-Jensen
2003-04-29 14:32 ` Remko Troncon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030429140436.GA14509@cs.kuleuven.ac.be \
--to=remko.troncon@cs.kuleuven.ac.be \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).