public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc on solaris
@ 2011-10-03  6:35 Christer Solskogen
  2011-10-03  7:10 ` Maciej (Matchek) Bliziński
  0 siblings, 1 reply; 4+ messages in thread
From: Christer Solskogen @ 2011-10-03  6:35 UTC (permalink / raw)
  To: gcc-help

Hi!

The gcc that comes with Solaris is quite old, so I figured that I'll 
compile my own. Compiling went fine, and that compiler even compiled 
binutils and gawk without troubles.
Then I went on installing postgresql (which also went fine) and running 
"make check" and suddenly bailed on because of missing libgcc_so.1. Aha! 
So I need to add /path/to/libgcc to "crle" (something like ld.so.conf on 
linux) But no. That did not go well.

Then I tried objdump. Compiling this test.c with Solaris gcc I got:
objdump -x a.out | grep -i rpath
   RPATH                /usr/ccs/lib:/lib:/usr/lib:/usr/sfw/lib

But with my own built gcc, I got nothing.
So, how do I add that to my own gcc?
I noticed that gcc -v on the solaris "version" said something about rpath:

/usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs
Configured with: /builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure 
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as 
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ 
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

Any clue?

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

end of thread, other threads:[~2012-01-11 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-03  6:35 gcc on solaris Christer Solskogen
2011-10-03  7:10 ` Maciej (Matchek) Bliziński
2011-10-03 11:36   ` Christer Solskogen
2012-01-11 13:08     ` Maciej (Matchek) Bliziński

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).