Comment 2 for bug 688497

Revision history for this message
Loïc Minier (lool) wrote :

Looks like an upstream bug, binutils will now install a ld.bfd by default, when absolutely no configure switch for gold/ld have been used:
../configure --enable-shared --enable-plugins --prefix=/usr --build=x86_64-linux-gnu --host=x86_64-linux-gnu --with-pkgversion="GNU Binutils for Ubuntu" --disable-werror \
  --with-sysroot=/ \
  --disable-werror \
  --enable-targets=alpha-linux-gnu,arm-linux-gnu,armel-linux-gnu,hppa-linux-gnu,i686-linux-gnu,ia64-linux-gnu,m68k-linux-gnu,m68k-rtems,mips-linux-gnu,mipsel-linux-gnu,mips64-linux-gnu,mips64el-linux-gnu,powerpc-linux-gnu,powerpc64-linux-gnu,s390-linux-gnu,s390x-linux-gnu,sh-linux-gnu,sh64-linux-gnu,sparc-linux-gnu,sparc64-linux-gnu,x86_64-linux-gnu,m32r-linux-gnu,spu
[...]
  /bin/bash ./libtool --mode=install /usr/bin/install -c ld-new '/build/buildd/binutils-2.21/debian/binutils-multiarch/usr/bin/./ld.bfd'

# Handle --enable-gold, --enable-ld.
# --disable-gold [--enable-ld]
# Build only ld. Default option.

So either the configure.ac comments or the behavior of binutils should be fixed to not install a ld.bfd when gold is not enabled at all.

I'm fine with your workaorund in any case, in fact you could remove ld.gold as well.