MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 2 - Cross-Compilation Toolchain

Navigation    
« Linux Kernel C Headers HOME GNU Compiler Collection »

GNU Binutils

Name: binutils
Summary: A suite of tools for working with executable files
License: LGPL v3.0+
Version: 2.47
URL: https://ftp.gnu.org/gnu/binutils/binutils-2.47.tar.xz

Configuration

To configure GNU Binutils for install into our cross-compilation root, run the following command:

mkdir -pv build && cd build
../configure                \
    --prefix=/tools         \
    --libdir=/tools/lib64   \
    --target=${BRFS_TARGET} \
    --with-sysroot=${BRFS}  \
    --disable-nls           \
    --enable-gprofng=no     \
    --disable-werror        \
    --enable-new-dtags      \
    --enable-default-hash-style=gnu

Stay in the build directory until this package is installed.

Compilation and Installation

To compile GNU Binutils, run the following command:

make

Finally, to install GNU Binutils into the cross-tools tree, run the following command:

make install

More details about this package are covered later in the core system build.

Navigation    
« Linux Kernel C Headers HOME GNU Compiler Collection »