#!/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} && cd ${LFS_TMP}/${1}-build && ../${1}/configure \ --prefix=/tools \ --disable-nls \ --with-lib-path=/tools/lib && make -j ${MAKEJOBS} && make install && make -j ${MAKEJOBS} -C ld clean && make -j ${MAKEJOBS} -C ld LIB_PATH=/usr/lib:/lib && cp -v ld/ld-new /tools/bin && # Restore original CFLAGS and CXXFLAGS values. restore_flags # Return last error exit $?