diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rwxr-xr-x | ld/configure | 10 | ||||
-rw-r--r-- | ld/configure.in | 10 |
3 files changed, 17 insertions, 10 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 562ba578fb..fc6a6d07e1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2010-11-23 Matthias Klose <doko@ubuntu.com> + + * configure.ac: For --enable-gold, handle value `default' instead of + `both*'. Always install ld as ld.gold, install as ld if gold is + the default. + * configure: Regenerate. + 2010-11-21 H.J. Lu <hongjiu.lu@intel.com> * ldfile.c: Re-indent plugin code. diff --git a/ld/configure b/ld/configure index 3367a88a32..088c721de7 100755 --- a/ld/configure +++ b/ld/configure @@ -1414,7 +1414,7 @@ Optional Features: (and sometimes confusing) to the casual installer --enable-targets alternative target configurations --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) - --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]] + --enable-gold[=ARG] build gold [ARG={default,yes,no}] --enable-got=<type> GOT handling scheme (target, single, negative, multigot) --enable-werror treat compile warnings as errors @@ -4179,11 +4179,11 @@ fi # Check whether --enable-gold was given. if test "${enable_gold+set}" = set; then : enableval=$enable_gold; case "${enableval}" in - yes|both/gold) + default) install_as_default=no installed_linker=ld.bfd ;; - both|both/ld) + yes|no) install_as_default=yes installed_linker=ld.bfd ;; @@ -4192,8 +4192,8 @@ if test "${enable_gold+set}" = set; then : ;; esac else - install_as_default=ld - installed_linker=ld + install_as_default=yes + installed_linker=ld.bfd fi diff --git a/ld/configure.in b/ld/configure.in index 122f65e13b..85fe903d3b 100644 --- a/ld/configure.in +++ b/ld/configure.in @@ -73,13 +73,13 @@ dnl Use --enable-gold to decide if this linker should be the default. dnl "install_as_default" is set to false if gold is the default linker. dnl "installed_linker" is the installed BFD linker name. AC_ARG_ENABLE(gold, -[[ --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]]], +[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]], [case "${enableval}" in - yes|both/gold) + default) install_as_default=no installed_linker=ld.bfd ;; - both|both/ld) + yes|no) install_as_default=yes installed_linker=ld.bfd ;; @@ -87,8 +87,8 @@ AC_ARG_ENABLE(gold, AC_MSG_ERROR([invalid --enable-gold argument]) ;; esac], -[install_as_default=ld - installed_linker=ld]) +[install_as_default=yes + installed_linker=ld.bfd]) AC_SUBST(install_as_default) AC_SUBST(installed_linker) |