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||"`