mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
config/functions: fix strip_lto
no lto *flags should be left after stripping..
This commit is contained in:
parent
a5a5269281
commit
a2eb94542e
@ -165,9 +165,13 @@ do_autoreconf() {
|
|||||||
|
|
||||||
strip_lto() {
|
strip_lto() {
|
||||||
# strip out LTO optimization from *FLAGS
|
# strip out LTO optimization from *FLAGS
|
||||||
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||g"`
|
if [ -n "$GCC_OPTIM_LTO" ] ; then
|
||||||
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||g"`
|
CFLAGS=`echo $CFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"`
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||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() {
|
strip_gold() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user