#!/bin/sh # Reading system configuration informations, functions and package versions. source ../sysinfos source ../functions source ../packages-list # Saves CFLAGS and CXXFLAGS, and clears them. save_flags_no_optimizations # Applying patches (if any) apply_patches ${1} && # First, we only want to install the linker. This is done because the # source and build directories from stage1 were not kept. cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --prefix=/usr \ --enable-shared && make tooldir=/usr && make check && make tooldir=/usr install && cp -v -f ../${1}/include/libiberty.h /usr/include && # Restore original CFLAGS and CXXFLAGS values. restore_flags # Return last error exit $?