| 12345678910111213141516171819202122232425262728293031 |
- #!/bin/bash
- set -e
- # Binutils FITP build script
- # Configures and builds binutils for FITP package
- build_dir=$1
- echo "Building binutils FITP..."
- # Change to source directory
- cd sources/binutils
- # Create and change to build directory (as per LFS recommendations)
- mkdir -v build
- cd build
- # Configure binutils for cross-compilation
- # Based on LFS binutils-pass1 instructions
- ../configure --prefix=${PREFIX}/tools \
- --with-sysroot=${DESTDIR} \
- --target=x86_64-astroitp-linux-gnu \
- --disable-nls \
- --enable-gprofng=no \
- --disable-werror
- # Compile the package
- echo "Compiling binutils..."
- make
- echo "Build complete."
|