config/functions: simplyfing strip_gold function

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-07-11 15:53:20 +02:00
parent 44fcb549e8
commit f80bc4003d

View File

@ -145,12 +145,14 @@ strip_lto() {
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 out usage from 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||"`
}