MTD 248-645A Bedienungsanleitung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 347
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 56
Linux From Scratch - Version 7.0
37
5.5. GCC-4.6.1 - Pass 1
The GCC package contains the GNU compiler collection, which includes the C and C++ compilers.
Approximate build time: 5.0 SBU
Required disk space: 1.2 GB
5.5.1. Installation of Cross GCC
GCC now requires the GMP, MPFR and MPC packages. As these packages may not be included in your host
distribution, they will be built with GCC. Unpack each package into the GCC source directory and rename the
resulting directories so the GCC build procedures will automatically use them:
tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
tar -jxf ../gmp-5.0.2.tar.bz2
mv -v gmp-5.0.2 gmp
tar -zxf ../mpc-0.9.tar.gz
mv -v mpc-0.9 mpc
Apply a patch that will allow the building of the libiberty and zlib target libraries to be disabled as these do not build
correctly in a cross-compiled environment:
patch -Np1 -i ../gcc-4.6.1-cross_compile-1.patch
The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:
mkdir -v ../gcc-build
cd ../gcc-build
Prepare GCC for compilation:
../gcc-4.6.1/configure \
--target=$LFS_TGT --prefix=/tools \
--disable-nls --disable-shared --disable-multilib \
--disable-decimal-float --disable-threads \
--disable-libmudflap --disable-libssp \
--disable-li/jointfilesconvert/297116/bgomp --disable-libquadmath \
--disable-target-libiberty --disable-target-zlib \
--enable-languages=c --without-ppl --without-cloog \
--with-mpfr-include=$(pwd)/../gcc-4.6.1/mpfr/src \
--with-mpfr-lib=$(pwd)/mpfr/src/.libs
The meaning of the configure options:
--disable-shared
This switch forces GCC to link its internal libraries statically. We do this to avoid possible issues with the host
system.
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 346 347

Kommentare zu diesen Handbüchern

Keine Kommentare