Linux from Scratch [2]

Source: Internet
Author: User

1. Some lib required by GCC

Gmp:a Free Library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point Numbers.

Mpfr:multiple Precision floating-point Reliable Library.

Mpc:a C Library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the ResU Lt.

2.GMP/MPFR/MPC Source code directories are placed in the GCC directory as their subdirectories exist, removing the directory version number

3. The LFS documentation says you need to modify the next GCC source code, not very able to understand what is done, probably the default use of the GCC some of the directories such as LIB, such as modified to Sources/lib(?).

4. Create a GCC link to gcc-ver.ver.ver without a version number to facilitate execution of the script that modifies the GCC source code

5. Under the GCC directory, execute the script above.

Note: The above scipt is executed under the GCC directory! If the execution succeeds there will be a series of file renaming prompts.

Coarse look script in the Sources/gcc/config directory to find things, but in fact, GCC source code directory has a gcc/config directory (sources/gcc-v.v.v/gcc/config), so step4 is not required.

6 ... /configure \
--target= $LFS _tgt \
--prefix=/tools \
--with-glibc-version=2.11 \
--with-sysroot= $LFS \
--with-newlib--without-headers \
--with-local-prefix=/tools \
--with-native-system-header-dir=/tools/include \
--DISABLE-NLS \
--disable-shared \
--disable-multilib \
--disable-decimal-float \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libquadmath \
--DISABLE-LIBSSP \
--DISABLE-LIBVTV \
--DISABLE-LIBSTDCXX \
--enable-languages=c,c++

Linux from Scratch [2]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.