Paulo Crespo, LIP, Coimbra, Portugal (crespo@lip.pt) 070814
ftp://gcc.gnu.org
and put it,
as root, into directory /usr/local/gcc
.
cd /usr/local/gcc
bunzip2 gcc-4.2.1
. This may take some time.
gcc -v
.
--append-suffix=-4.2.1
, as
follows (in one line), this may take some time:
./configure --enable-threads=posix
--prefix=/usr --with-local-prefix=/usr/local
--infodir=/usr/share/info --mandir=/usr/share/man
--libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c
++,objc
--enable-checking=release
--with-gxx-include-dir=/usr/include/c
++/4.1.0
--enable-ssp --disable-libssp
--enable-java-awt=gtk --enable-gtk-cairo
--disable-libjava-multilib --with-slibdir=/lib
--with-system-zlib
+ --enable-shared
--enable-__cxa_atexit
--enable-libstdcxx-allocator=new
--without-system-libunwind --with-cpu=generic
--host=i586-suse-linux --append-suffix=-4.2.1
make all
make install
/usr/bin
, or write explicitly, when compiling, either g
++ for
the older compiler 4.1.0
, or g
++-4.2.1
to compile
with the new, OpenMP capabale compiler.