gcc on solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux