aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-01-07 19:55:41 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-01-07 19:55:41 +0000
commitf2a6224b9cebb750e91014fe824390bc271cfa34 (patch)
tree65b58933ef876eaa7e7f88ec7ba109a6e644bec2 /gold/configure.ac
parent2a3613122fa5de5a375c56a3dc6bcb8a686dffe7 (diff)
downloadgdb-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.ac')
-rw-r--r--gold/configure.ac26
1 files changed, 7 insertions, 19 deletions
diff --git a/gold/configure.ac b/gold/configure.ac
index e49d6e8..804a474 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -68,32 +68,20 @@ dnl "install_as_default" is true if the linker to be installed as the
dnl default linker, ld.
dnl "installed_linker" is the installed gold linker name.
-default_ld=
-AC_ARG_ENABLE(ld,
-[[ --enable-ld[=ARG] build ld [ARG={default,yes,no}]]],
-[case "${enableval}" in
- default)
- default_ld=ld.bfd
- ;;
-esac])
-
+installed_linker=ld.gold
AC_ARG_ENABLE(gold,
[[ --enable-gold[=ARG] build gold [ARG={default,yes,no}]]],
[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)
- ;;
- *)
- AC_MSG_ERROR([invalid --enable-gold argument])
;;
esac],
-[install_as_default=no
- installed_linker=ld.gold])
+[install_as_default=no])
AC_SUBST(install_as_default)
AC_SUBST(installed_linker)