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

Re: Как поставить в woody по умолчанию gcc v 3.x



Sergey Spiridonov wrote:

Неправильно написал
Учтите что g++-2.95 бинарно не совместим ни с gcc-3.x, ни со старой glibc.

g++-3.x не совместим со старой glibc (но в woody наверное уже достаточно новая glibc), g++2.95 бинарно не совместим с g++-3.x

А теперь по делу - судя по

zless /usr/share/doc/gcc/README.Debian.gz

нужно использовать переменную окружения

Starting in Debian 3.0, there is now a gcc-defaults package set. This
creates the actual packages for gcc, gpc, g++, gobjc, chill, g77, gcj,
gij, treelang and gpc.  These packages will depend on the corresponding
default compiler for that architecture. For Debian 3.1 for example,
"gcc" depends on "gcc-3.3", which means that the "gcc-3.3" package will
install a binary called "gcc-3.3", which is symlinked to in the "gcc"
package as "gcc".

This may seem confusing, but what it allows you do to is install more
than one version of the GCC compiler collection 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-2.95, or
similar.


...

The most important practical implications are in the merging/linking
of object files built with different compilers; If you use the 2.95.x
C compiler, you should use the gcc-2.95 compiler driver for all your
work.  When configuring sources, use

    CC=gcc-2.95 ./configure <configure options>         # bash
    setenv CC gcc-2.95; ./configure <options>           # csh

When calling make, use make CC=gcc-2.95.


--
Best regards, Sergey Spiridonov



Reply to: