config/functions: fix strip_lto(), fix strip_gold()

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-11-27 03:08:36 +01:00
parent 8f9bb97e2f
commit 9369dc8822

View File

@ -137,14 +137,14 @@ do_autoreconf() {
strip_lto() {
# strip out LTO optimization from *FLAGS
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||"`
CXXFLAGS=`echo $CXXFLAGS | 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||"`
LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||" -e "s|-fuse-linker-plugin||"`
}
strip_linker_plugin() {