gcc: unbreak build due to _FORTIFY_SOURCE in CPPFLAGS.

This commit is contained in:
Juan RP 2015-03-12 10:20:39 +01:00
parent b05250f141
commit 9f9ca01056

View file

@ -61,7 +61,8 @@ pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) patch -Np1 -i ${FILESDIR}/gcc-${version}-musl.diff;;
esac
# _FORTIFY_SOURCE needs an optimization level.
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" {gcc,libiberty}/configure
# As specified in the LFS book, disable installing libiberty.
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
# Do not run fixincludes