diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2013-01-07 19:55:41 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2013-01-07 19:55:41 +0000 |
commit | f2a6224b9cebb750e91014fe824390bc271cfa34 (patch) | |
tree | 65b58933ef876eaa7e7f88ec7ba109a6e644bec2 /gold/configure | |
parent | 2a3613122fa5de5a375c56a3dc6bcb8a686dffe7 (diff) | |
download | gdb-f2a6224b9cebb750e91014fe824390bc271cfa34.zip gdb-f2a6224b9cebb750e91014fe824390bc271cfa34.tar.gz gdb-f2a6224b9cebb750e91014fe824390bc271cfa34.tar.bz2 |
Properly install gold as default linker
PR gold/14897
* configure.ac (--enable-ld): Removed.
(install_as_default): Set to yes only for --enable-gold=default
or --disable-ld.
* configure: Regenerated.
Diffstat (limited to 'gold/configure')
-rwxr-xr-x | gold/configure | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/gold/configure b/gold/configure index e3c0bda..9e1ee27 100755 --- a/gold/configure +++ b/gold/configure @@ -774,7 +774,6 @@ ac_subst_files='' ac_user_opts=' enable_option_checking with_sysroot -enable_ld enable_gold enable_threads enable_plugins @@ -1424,7 +1423,6 @@ Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-ld[=ARG] build ld [ARG={default,yes,no}] --enable-gold[=ARG] build gold [ARG={default,yes,no}] --enable-threads multi-threaded linking --enable-plugins linker plugins @@ -3270,35 +3268,21 @@ _ACEOF -default_ld= -# Check whether --enable-ld was given. -if test "${enable_ld+set}" = set; then : - enableval=$enable_ld; case "${enableval}" in - default) - default_ld=ld.bfd - ;; -esac -fi - - +installed_linker=ld.gold # Check whether --enable-gold was given. if test "${enable_gold+set}" = set; then : enableval=$enable_gold; case "${enableval}" in - yes|default) - if test x${default_ld} = x; then + default) + install_as_default=yes + ;; + yes) + if test x${enable_ld} = xno; then install_as_default=yes fi - installed_linker=ld.gold - ;; - no) - ;; - *) - as_fn_error "invalid --enable-gold argument" "$LINENO" 5 ;; esac else install_as_default=no - installed_linker=ld.gold fi |