public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* how do you get gcc with gnu ld to work on solaris2.x?
@ 2002-12-04 17:12 Henry Nelson
  0 siblings, 0 replies; only message in thread
From: Henry Nelson @ 2002-12-04 17:12 UTC (permalink / raw)
  To: gcc

Since updating gcc to 3.2.1 and binutils to 2.13.1 (also tried 2.12.1
with same results) many packages either do not build or even if a binary
is created it cannot find libraries.
    Reading specs from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.1/specs
    Configured with: ../gcc-3.2.1/configure --prefix=/opt/gnu --disable-nls
    --enable-languages=c,c++ --with-gnu-as --with-as=/opt/gnu/bin/as
    --with-gnu-ld --with-ld=/opt/gnu/bin/ld
    Thread model: posix
    gcc version 3.2.1

    GNU ld version 2.12.1
      Supported emulations:
       elf32_sparc

For example, to build a usable "info" I had to add this to my environment
before running configure in the texinfo package:
    setenv LIBS "/usr/local/lib/libncurses.so -Wl,-rpath -Wl,/usr/local/lib"
    setenv TERMLIBS "-L/usr/local/lib -lncurses -R/usr/local/lib"

The "iconv" binary created in the libiconv-1.8 package can't even find
"libgcc_s.so.1" to open it!
   % ls -l /opt/gnu/lib/libgcc_s.so.1
   -rw-r--r--   1 root       152396 Dec  1 16:34 /opt/gnu/lib/libgcc_s.so.1

<rant>
Yes, I can `setenv LD_LIBRARY_PATH "/opt/gnu/lib"` before running it, but
that is not a _solution_, it is a _workaround_ that will NOT even work in
all situations.  Since iconv is unusable standalone, configure scripts get
broken right and left.  I even tried installing "libtool," but nothing
has changed.

In it's present state, gcc with gnu ld is pretty much useless to the
_general_ Solaris2.x user.
</rant>

Please cc me if there is a real solution.  TIA

henry nelson

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-05  1:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-04 17:12 how do you get gcc with gnu ld to work on solaris2.x? Henry Nelson

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