mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
config/functions: simplyfing strip_gold function
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
44fcb549e8
commit
f80bc4003d
@ -145,12 +145,14 @@ strip_lto() {
|
|||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||"`
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||"`
|
||||||
}
|
}
|
||||||
|
|
||||||
strip_gold() {
|
|
||||||
# strip out usage from GOLD linker
|
|
||||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||" -e "s|-fuse-linker-plugin||"`
|
|
||||||
}
|
|
||||||
|
|
||||||
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||"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strip_gold() {
|
||||||
|
# strip out usage from GOLD linker
|
||||||
|
strip_linker_plugin
|
||||||
|
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||"`
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user