Subject: Answer Re: "./build sol" question (with gcc)

From: Paradise Cowgirl <[email-masked]>
Date: Thu, 28 May 1998 13:49:21 -0700 (PDT)

Hello, all,

Here are two answers to my question regarding gcc and "./build sol":

One way:

1. edit src/makefiles/Makefile.sol and support/makefiles/Makefile.sol and
comment out the line in each file:

	CC =	cc

2. export CC=gcc (or setenv CC gcc)

	(or combine step 1 and 2 and make CC = gcc)

3. make sure gcc is in your $PATH

4. Run ./build sol as you normally would and everything works fine.

Another way (thanks to Stig Isaksson):

1. Make a symbolic link, i.e.:

ln -s /<where the gcc is>/gcc /<where you want the link>/cc

which in my case meant: ln -s /opt/GCC2721/gcc /usr/ccs/bin/cc

2. Have the directory with the link (in my case /usr/ccs/bin) in your
$PATH

3. AVOID having /usr/ucb in your $PATH (if that's where the cc script
is which tries to run the non-present BSD compatible C compiler).

Cheers,
Darci Chapman
aka Paradise Cowgirl

--
information is not knowledge. knowledge is not
wisdom.  wisdom is not truth.  truth is not beauty.
beauty is not love. love is not music.
music is the best.   -- FZ