"C. Bergstr?m" <cbergstrom at netsyncro.com> writes:

> I need to get any gcc-4.2.x version built/working on opensolaris.  I've
> only worked with more recent version and not sure if any patches are
> needed(?)
>
> What configure option(s) and exported env variables are suggested?

I use something like

        CONFIG_SHELL=/bin/ksh $srcdir/configure --with-gnu-as \
                --with-as=/usr/sfw/bin/gas --enable-languages=c,c++

--with-gmp and --with-mpfr shouldn't be necessary, since both live in
/usr and should be detected automatically.

Please note that I didn't yet test on Indiana, and recent testing on
SX:CE 124 detected a couple of ld bugs that broke the libstdc++.so build.
The fixes should be integrated shortly.

> * It must be gcc-4.2.x (3.4, 4.3 or any other version won't work for what
> I'm doing)

Care to explain why?  The 4.2.x family isn't supported by the GCC
project any longer.

> * I'd love to build it as pure 64bit and drop multilib (This *will* take
> patches, but not sure if anyone has done this before)

As Solaris GCC maintainer, I'll oppose such a patch: it adds to the
testing matrix and complicates things needlessly.  As long as any
Solaris release still supports x86, we'll have to keep the multilib
support.  In fact I think the sparcv9-sun-solaris2* configuration was a
mistake, too.

> * Less dependencies is better

To avoid problems, I've always built gmp and mpfr statically myself.
Given that they are already included in OpenSolaris, this shouldn't be
an option.

> I only need a working c/c++ compiler (no ada, java or anything else)

Should be relatively painless, modulo the ld bugs above.

       Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to