gcc: unbreak build due to _FORTIFY_SOURCE in CPPFLAGS.
This commit is contained in:
parent
b05250f141
commit
9f9ca01056
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue