From 13c5e95035659ab294dceeb8d475ecc28d990a50 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 16 Jul 2011 16:13:18 +0200 Subject: [PATCH] Revert "config/functions: simplyfing strip_gold function" This reverts commit f80bc4003de37b6a767e3d0ffea07927c4ec73cf. --- config/functions | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/config/functions b/config/functions index 32c0c9d5b2..4ab3eb1e6a 100644 --- a/config/functions +++ b/config/functions @@ -145,14 +145,12 @@ 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||"` -} -