[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Solaris 10/sparc build configuration [Was: Re:GNU Modula-2 version
From: |
john o goyo |
Subject: |
[Gm2] Solaris 10/sparc build configuration [Was: Re:GNU Modula-2 version 1.0] |
Date: |
Mon, 13 Dec 2010 08:02:10 -0500 |
On 13-Dec-10, at 4:03 AM, Gaius Mulley wrote:
[...]
Also John could you email me your Solaris configure and I'll add this
to the documentation as well?
Here is my configuration script for Solaris 10/sparc -- ultrasparc
really:
env CFLAG=/opt/pth/include CONFIG_SHELL=/bin/bash ../../src/gcc-4.1.2/
configure --prefix=/home/build/gm2-4.1.2 --exec-prefix=/home/build/
gm2-4.1.2 --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gnu-as --
with-as=/usr/sfw/bin/gas --build=sparc64-sun-solaris2.10 --
host=sparc64-sun-solaris2.10 --enable-languages=c,c++,gm2
To explain, I have sister directories for source (/home/build/src)
and build (/home/build/bld) in my build account. I run the
configuration script in the build directory. The result is put in my
build account.
Please note the following:
1. I created a soft-link /opt/sfw/bin/as --> /opt/sfw/bin/gas so that
gmake gm2.paranoid
calls gas and not /usr/ccb/bin/as.
2. GNU pth must be present. I built a copy and placed it in /opt/pth.
3. You must append "-lsocket -lnsl" to line 27 of each of the
following files.
testsuite/gm2/coroutines/pim/run/pass/gm2.exp
testsuite/gm2/isocoroutines/run/pass/gm2.exp
(This because these modules require certain socket calls. Configure
does not pick these up, for whatever reason.)
4. I export LD_LIBRARY_PATH_64=/home/build/gm2-4.1.2/lib/sparcv9 (the
location of the 64-bit gm2 libraries). Otherwise, gm2 tries to link
in the 32-bit libraries -- I do not know why.
john