0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-04-05 16:34:40 +00:00

config/functions: fix strip_lto

no lto *flags should be left after stripping..
This commit is contained in:
Stephan Raue
2014-08-31 20:01:54 +03:00
parent a5a5269281
commit a2eb94542e

@ -165,9 +165,13 @@ do_autoreconf() {
strip_lto() {
# strip out LTO optimization from *FLAGS
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||g"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||g"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||g"`
if [ -n "$GCC_OPTIM_LTO" ] ; then
CFLAGS=`echo $CFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"`
fi
if [ -n "$LD_OPTIM_LTO" ] ; then
LDFLAGS=`echo $LDFLAGS | sed -e "s|$LD_OPTIM_LTO||g"`
fi
}
strip_gold() {