build.sh 682 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. set -e
  3. # Binutils FITP build script
  4. # Configures and builds binutils for FITP package
  5. build_dir=$1
  6. echo "Building binutils FITP..."
  7. # Change to source directory
  8. cd sources/binutils
  9. # Create and change to build directory (as per LFS recommendations)
  10. mkdir -v build
  11. cd build
  12. # Configure binutils for cross-compilation
  13. # Based on LFS binutils-pass1 instructions
  14. ../configure --prefix=${PREFIX}/tools \
  15. --with-sysroot=${DESTDIR} \
  16. --target=x86_64-astroitp-linux-gnu \
  17. --disable-nls \
  18. --enable-gprofng=no \
  19. --disable-werror
  20. # Compile the package
  21. echo "Compiling binutils..."
  22. make
  23. echo "Build complete."