From 4e3d92143e959a8d67a55e54b4b9fe20b9c57e20 Mon Sep 17 00:00:00 2001 From: longchair Date: Sat, 23 Jul 2016 09:28:46 +0200 Subject: [PATCH] functions : Make sure sure we also remove lto & gold flags from TARGET_FLAGS. If some packages want to use strip_lto or strip_gold and use the TARGET_FLAGS, those still have the lto flags. --- config/functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/functions b/config/functions index 1c0983231f..6593d8f19c 100644 --- a/config/functions +++ b/config/functions @@ -211,15 +211,19 @@ strip_lto() { if [ -n "$GCC_OPTIM_LTO" ] ; then CFLAGS=`echo $CFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"` CXXFLAGS=`echo $CXXFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"` + TARGET_CFLAGS=`echo $TARGET_CFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"` + TARGET_CXXFLAGS=`echo $TARGET_CXXFLAGS | sed -e "s|$GCC_OPTIM_LTO||g"` fi if [ -n "$LD_OPTIM_LTO" ] ; then LDFLAGS=`echo $LDFLAGS | sed -e "s|$LD_OPTIM_LTO||g"` + TARGET_LDFLAGS=`echo $TARGET_LDFLAGS | sed -e "s|$LD_OPTIM_LTO||g"` fi } strip_gold() { # strip out usage from GOLD linker LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-ld=gold||g"` + TARGET_LDFLAGS=echo $TARGET_LDFLAGS | sed -e "s|-fuse-ld=gold||g"` } fix_module_depends() {