From 6370fa6cff0ec2a8ac8d50d1595ec9500f6631c9 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Wed, 24 Jan 2001 00:31:17 +0000 Subject: Initial commit - LFS 2.4.4 files git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/gcc-static-inst.sgml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 chapter05/gcc-static-inst.sgml (limited to 'chapter05/gcc-static-inst.sgml') diff --git a/chapter05/gcc-static-inst.sgml b/chapter05/gcc-static-inst.sgml new file mode 100644 index 000000000..fce53546a --- /dev/null +++ b/chapter05/gcc-static-inst.sgml @@ -0,0 +1,36 @@ + +Installation of GCC on the LFS system + + +After you unpacked the gcc-2.95.2 archive don't enter the newly created +gcc-2.95.2 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/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/cpp cpp + && + cd $LFS/usr/lib && + ln -s gcc-lib/*/2.95.2/cpp cpp + && + cd $LFS/usr/bin && + ln -s gcc cc + +
+ +
+ -- cgit v1.2.3-54-g00ecf