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

Re: How to get compiler changed to gcc-3.20



Oliver Fuchs wrote:

On Thu, 28 Nov 2002, John Foster wrote:

I have set the variables in /etc/environment to the following

### BEGIN DEBCONF SECTION FOR localeconf
# Do not edit within this region if you want your changes to be preserved
# by debconf.  Instead, make changes before the "### BEGIN DEBCONF SECTION
# FOR localeconf" line, and/or after the "### END DEBCONF SECTION FOR
# localeconf" line.
LANG=en_US
### END DEBCONF SECTION FOR localeconf
CC=/usr/bin/gcc-3.2
GCC=/usr/bin/gcc-3.2
CPP=/usr/bin/cpp-3.2

Hi,
the /usr/share/doc/gcc-3.0-base/README.Debian.gz says:

How are the default compilers selected?
---------------------------------------

[...]
This may seem confusing, but what it allows you do to is install two
versions of the GCC compiler suite at the same time, making sure you are
always using the one preferred for that architecture. To use the other
compiler, simply set CC=gcc-3.0, or similar.
[...]

That seems to be in your file. If you have installed the gcc-3.2 why not simply
link /usr/bin/gcc to /usr/bin/gcc-3.2.

Oliver

--------------------------------------------------------------
Thanks I thought of that, but I need to also have access to the 2.95.4 the 3.0 and still need the 3.20 versions to handle specefic dependencies for non-Debian compiles that I do. I finally did as another poster suggested and simply changed all to references to gcc-3.20 in the Makefile in the kernel src directory. That solved the issues completely. Someone pointed out that the Makefile ignores the environment variables anyway and that proved to be true in my case.
Thanks.
John




Reply to: