On 2001.12.31, in <[EMAIL PROTECTED]>,
        "Will Yardley" <[EMAIL PROTECTED]> wrote:
> Srivastava, Mohit wrote:
> 
> > we have Solaris 5.7 
> > we tried installing GNU C compiler buw were having problems.
> > It would be great if u can add for for Solaris .
> 
> a few things...
> 
> 1) you're probably going to need to install packages other than gcc.  if
> you're using gcc, you should probably use the GNU binutils as well,
> rather than the one in /usr/ccs/bin

Why? The only reason I've found to use binutils instead of the /usr/ccs
tools is that buggy software sometimes assumes that I'm using binutils
syntax if I'm using gcc. I take that as an opportunity to contribute
fixes for the buggy software, not a cause to reconfigure gcc to use
binutils. :)

The /usr/ccs programs work fine with gcc, and keep abreast of changes in
Solaris itself much more than the binutils analogues do.


> there's a good list somewhere of things you need in order to compile
> stuff nicely on slowlaris.

In my experience, most third-party software is *needed* only to dodge
poor design choices in "free" software. There are many things that are
useful, but not needed, though.


> LDFLAGS=-Wl,-R/usr/local/lib ./configure --with-libiconv-prefix=/usr/local
> 
> to get mutt to compile.  i'm not sure if that's the right way to do it
> on solaris but it seemed to work.

You can also configure gcc to always run the linker with
-R/usr/local/lib (see /usr/local/lib/gcc-lib/*-*-solaris*/*/specs), or
you can avoid this problem by using LD_LIBRARY_PATH or LD_RUN_PATH as
appropriate.

-- 
 -D.    [EMAIL PROTECTED]        NSIT    University of Chicago

Reply via email to