- disable build with GOLD linker, because of problems
This commit is contained in:
Stephan Raue 2010-06-06 01:39:11 +02:00
parent b089a1b73f
commit d05c5afc64

View File

@ -11,6 +11,11 @@ else
SMB_AVAHI="--disable-avahi" SMB_AVAHI="--disable-avahi"
fi 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. # Fails to compile with GCC's link time optimization.
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"` CFLAGS=`echo $CFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`
CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"` CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-flto||" -e "s|-fuse-linker-plugin||"`