LFS, compiling your own Linux system-compiling a temporary system

Source: Internet
Author: User

Binutils-2.24-pass 1

Unzip

TAR–JXVF binutils-2.24.tar.bz2

Go to code Directory

CD tinutils-2.24

Building the compilation Directory

Mkdir–v. /binutils-build

Switch to the compiled directory

Cd.. /binutils-build

Grant Configure executable permissions

chmod a+x. /binutils-2.24/configure

Executive Configure

../binutils-2.24/configure         --prefix=/tools                --with-sysroot=$LFS            --with-lib-path=/tools/lib     --target=$LFS_TGT              --disable-nls                  --disable-werror
执行make
make
因为是64位系统,所以建个链接
mkdir /tools/lib
ln –s lib /tools/lib64
安装
make install
删除临时目录
cd /mnt/lsf/sources
rm –Rf binutils-2.24 binutils-build
整个过程在我的虚拟机上用时5分钟。
Changelog
2014-05-30 首次发布。

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.