From b08f4096533577934b885fa9df41d3881d141612 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Thu, 15 Feb 2001 15:26:52 +0000 Subject: Initial XML commit git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@174 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/gcc-inst.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 chapter05/gcc-inst.xml (limited to 'chapter05/gcc-inst.xml') diff --git a/chapter05/gcc-inst.xml b/chapter05/gcc-inst.xml new file mode 100644 index 000000000..551ef1dee --- /dev/null +++ b/chapter05/gcc-inst.xml @@ -0,0 +1,36 @@ + +Installation of GCC on the LFS system + + +After you unpacked the gcc-2.95.2.1 archive don't enter the newly created +gcc-2.95.2.1 directory but stay in the $LFS/usr/src directory. Install GCC by +running the following commands: + + +
+ + mkdir $LFS/usr/src/gcc-build && + cd $LFS/usr/src/gcc-build && + ../gcc-2.95.2.1/configure --prefix=/usr \ +    --with-gxx-include-dir=/usr/include/g++ + \ +    --enable-languages=c,c++ --disable-nls + && + make -e LDFLAGS=-static bootstrap && + make prefix=$LFS/usr local_prefix=$LFS/usr/local + \ +    gxx_include_dir=$LFS/usr/include/g++ + install && + cd $LFS/lib && + ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp + && + cd $LFS/usr/lib && + ln -s gcc-lib/*/2.95.2.1/cpp cpp + && + cd $LFS/usr/bin && + ln -s gcc cc + +
+ +
+ -- cgit v1.2.3-54-g00ecf