source ../functions
source ../packages-list
-# Saves CFLAGS and CXXFLAGS, and clears them.
-save_flags_no_optimizations
-
# Applying a sed substitution that will suppress the installation of
# libiberty.a. We want to use the Binutils version of libiberty.a
cd ${LFS_TMP}/${1} &&
echo 'main(){}' > dummy.c &&
cc dummy.c &&
readelf -l a.out | grep ': /lib' 1> /dev/null 2>&1 &&
-rm dummy.c a.out &&
-
-# Restore original CFLAGS and CXXFLAGS values.
-restore_flags
+rm dummy.c a.out
# Return last error
exit $?