mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
config/functions: fix *flags filter
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
733fd08856
commit
b5f3d04917
@ -140,19 +140,19 @@ 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||"`
|
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||g"`
|
||||||
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||"`
|
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||g"`
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||"`
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||g"`
|
||||||
}
|
}
|
||||||
|
|
||||||
strip_linker_plugin() {
|
strip_linker_plugin() {
|
||||||
# strip out usage from linker plugin
|
# strip out usage from linker plugin
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||"`
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||g"`
|
||||||
}
|
}
|
||||||
|
|
||||||
strip_gold() {
|
strip_gold() {
|
||||||
# strip out usage from GOLD linker
|
# strip out usage from GOLD linker
|
||||||
strip_linker_plugin
|
strip_linker_plugin
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||"`
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||g"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user