On Mon, Sep 02, 2002 at 12:16:28PM +0200, voguemaster wrote:
> >
> >gcc has its own built-in include and libs parameters (set at compile
> >time), right?
> >
>
> I don't know about that. When you configure gcc before compilation
> you usually set the installation location, library dirs if you want'em changed,
> other compile options etc..
> I don't know enough because I've only built gcc recently and I wasn't sure
> how to do it, it was my first time :)
> Another reason was that I didn't want the new gcc to break my system. Who
> knows what changes it can do. That's why I'm interested in finding out how
> exactly one should go about to replace gcc altogether, and how to keep two
> seperate versions..
inside the top gcc source directory,
mkdir somedir
cd somedir
./configure --prefix=/usr/local/some/directory/for/this/gcc
make install
Then, put /usr/local/some/directory/for/this/gcc/bin in the beginning of
your path. For c++ programs you will also want to put
/usr/local/some/directory/for/this/gcc/lib in your LD_LIBRARY_PATH.
I hold 3 versions this way, soon 4 (3.2).
If you want to set a default, link to /usr/local/bin.
>
> Eli
>
> "There's so many different worlds
> So many different suns
> And we have just one world
> But we live in different ones.."
>
> - Dire Straits
>
>
>
>
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]
Didi
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]