[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc version?



At Mon, 01 Sep 2003 22:28:56 +0200,
Mario Vukelic wrote:
> 
> On Mon, 2003-09-01 at 22:10, Lukasz Hejnak wrote:
> 
> > export/setenv CC=gcc-2.95
> > (select one, export or setenv, depending on your distro)
> 
> rather, depending on your shell. setenv if you run csh or tcsh, export
> if you run bash (highly probable)
> 
> An easier way to set the compiler to s specific version just for one
> compile is to specify the environment variablw on the command line:
> 
> CC=gcc-2.95 make install [or whatever the original poster wanted to
> accomplish]

As a tcsh inveterate user, I find "env CC=gcc-2.95 make install"
to be more portable across shells, inasmuch as it's a separate
program (part of the coreutils package).



Reply to: