On Fri, Nov 30, 2012 at 11:33 AM, H.J. Lu <hongjiu...@intel.com> wrote: > Hi, > > Toplevel configure supports: > > # Handle --enable-gold, --enable-ld. > # --disable-gold [--enable-ld] > # Build only ld. Default option. > # --enable-gold [--enable-ld] > # Build both gold and ld. Install gold as "ld.gold", install ld > # as "ld.bfd" and "ld". > # --enable-gold=default [--enable-ld] > # Build both gold and ld. Install gold as "ld.gold" and "ld", > # install ld as "ld.bfd". > # --enable-gold[=default] --disable-ld > # Build only gold, which is then installed as both "ld.gold" and > # "ld". > # --enable-gold --enable-ld=default > # Build both gold (installed as "ld.gold") and ld (installed as "ld" > # and ld.bfd). > # In other words, ld is default > # --enable-gold=default --enable-ld=default > # Error. > > However, gcc directory doesn't handle --enable-gold=default properly. > This patch fixes --enable-gold=default. Tested on Linux/x86-64 with > GCC + binutils using: > > --enable-plugins --enable-threads --enable-gold=default > > OK to to install? > > Thanks. > > > H.J. > --- > 2012-11-30 H.J. Lu <hongjiu...@intel.com> > > PR bootstrap/55552 > * configure.ac (install_gold_as_default): New. Set to yes for > --disable-ld or --enable-gold=default. > (gcc_cv_ld_gold_srcdir): New. > (gcc_cv_ld): Also check in-tree gold if install_gold_as_default > is yes. > * configure: Regenerated. > > * exec-tool.in (dir) [collect-ld && ../gold/ld-new]: Set to gold. > (fast_install) [collect-ld && ../gold/ld-new]: Set to yes. >
This is a very old patch. The updated one is at http://gcc.gnu.org/ml/gcc-patches/2013-11/msg02870.html which also fixes -fuse-ld=bfd/-fuse-ld=gold with in-build-tree xgcc. -- H.J.