Newbie : Linux Step by Step site :
m.w.chang
mwchang
Mon May 17 11:38:41 PDT 2004
oh.. I think they moved it elsewhere.. sorry for my bad finger.
And I just checked the message/article was posted by Mr. David Bandel,
not Mr. Hunley. :)
anyway, here is a script I created out of his message:
#!/bin/sh
# http://hunley.homeip.net/linux_sources/utils/gcc_notes
cd /usr/src
mkdir work
cd work
../gcc-2.95.3/configure \
--prefix=/usr \
--host=i686-pc-linux
--with-gxx-include-dir=/usr/include/g++ \
--enable-shared \
--enable-cpp \
--enable-gnu-ld
# gcc >= 3.0:
#./configure \
# --prefix=/usr \
# --enable-languages=c,c++
make bootstrap
# make -k check
# check for error (non-zero return value)
echo $?
# remove the old gcc, g77 and g++ rpms
rpm -e binutils --nodeps
rpm -e g++
rpm -e g77
rpm -e gcc-java
rpm -e gcc-objc
rpm -e gcc
#
checkinstall
#
# post implementation
cd /lib
ln -sf /usr/bin/cpp
cd /usr/lib
ln -sf /usr/bin/cpp
cd /usr/bin
ln -sf gcc cc
cd /usr/lib
ln -sf /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/libstdc++.so
--
Swiftly. Silently. Invisibly. .~. In Linux we trust.
/ v \
news://news.hkpcug.org /( _ )\ http://www.linux-sxs.org
^ ^
More information about the Linux-users
mailing list