From d05c5afc6477541fccbb944bc0437f2a441882e4 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 6 Jun 2010 01:39:11 +0200 Subject: [PATCH] samba: - disable build with GOLD linker, because of problems --- packages/network/samba/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/network/samba/build b/packages/network/samba/build index 90c5828f71..e004ebc293 100755 --- a/packages/network/samba/build +++ b/packages/network/samba/build @@ -11,6 +11,11 @@ else SMB_AVAHI="--disable-avahi" fi +# Fails to compile using the gold linker + CFLAGS=`echo $CFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"` + CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"` + LDFLAGS=`echo $LDFLAGS | sed -e "s|-fuse-linker-plugin||" -e "s|-fuse-ld=gold||"` + # Fails to compile with GCC's link time optimization. CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"` CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`