MidgardOS Developer Documentation

A website documenting creating the build root for MidgardOS


Section 5 - Building the Base System Tools

Navigation    
« PkgConf HOME GNU GMP 64-bit »

GNU Binutils

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

Average Build Time: 1.6 SBU
Used Install Space: 832 MiB

Configuration

To configure GNU Binutils for install into the build root, run the following commands:

mkdir -pv build && cd build
../configure --prefix=/usr           \
             --libdir=/usr/lib64     \
             --libexecdir=/usr/lib64 \
             --sysconfdir=/etc       \
             --enable-ld=default     \
             --enable-plugins        \
             --enable-shared         \
             --disable-werror        \
             --enable-64-bit-bfd     \
             --enable-new-dtags      \
             --with-system-zlib      \
             --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 tooldir=/usr

Next, run the test suite:

make -k check
grep '^FAIL:' $(find -name '*.log')

Finally, to install GNU Binutils into the build tree, run the following commands:

make tooldir=/usr install
rm -rfv /usr/lib64/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.a /usr/share/doc/gprofng/
rm -rfv /usr/lib64/lib{bfd,ctf,ctf-nobfd,gprofng,opcodes,sframe}.la

Contents

Contents  
Installed Programs addr2line, ar, as, c++filt, dwp, elfedit, gprof, gprofng, ld, ld.bfd, nm, objcopy, objdump, ranlib, readelf, size, strings, and strip
Installed Libraries libbfd.so, libctf.so, libctf-nobfd.so, libgprofng.so, libopcodes.so, and libsframe.so
Installed Directories /usr/lib/ldscripts
Navigation    
« PkgConf HOME GNU GMP 64-bit »