public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: PR gold/14897: gold is installed as default ld by accident
@ 2012-11-30 15:02 H.J. Lu
  2013-01-07 17:06 ` H.J. Lu
  2013-01-07 18:41 ` Ian Lance Taylor
  0 siblings, 2 replies; 5+ messages in thread
From: H.J. Lu @ 2012-11-30 15:02 UTC (permalink / raw)
  To: binutils; +Cc: Ian Lance Taylor

Hi,

We should install gold as default ld only for --disable-ld or
--enable-gold=default.  Tested with

--enable-gold
--enable-gold=default
--enable-gold --disable-ld

OK for trunk and 2.23?

Thanks.

H.J.
---
2012-11-30  H.J. Lu  <hongjiu.lu@intel.com>

	PR gold/14897
	* configure.ac (install_as_default): Set to yes only for
	--disable-ld or --enable-gold=default.
	* configure: Regenerated.
diff --git a/gold/configure b/gold/configure
index 4f74ae3..16737ae 100755
--- a/gold/configure
+++ b/gold/configure
@@ -3272,18 +3272,22 @@ 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
+ no)
+   default_ld=ld.gold
+   ;;
+ esac
 fi
 
 
 # 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
+   installed_linker=ld.gold
+   ;;
+ yes)
+   if test x${default_ld} != x; then
      install_as_default=yes
    fi
    installed_linker=ld.gold
diff --git a/gold/configure.ac b/gold/configure.ac
index f8297f2..cbb2326 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -55,16 +55,20 @@ default_ld=
 AC_ARG_ENABLE(ld,
 [[  --enable-ld[=ARG]     build ld [ARG={default,yes,no}]]],
 [case "${enableval}" in
-  default)
-    default_ld=ld.bfd
-    ;;
-esac])
+ no)
+   default_ld=ld.gold
+   ;;
+ esac])
 
 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
+   installed_linker=ld.gold
+   ;;
+ yes)
+   if test x${default_ld} != x; then
      install_as_default=yes
    fi
    installed_linker=ld.gold

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-07 19:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-30 15:02 PATCH: PR gold/14897: gold is installed as default ld by accident H.J. Lu
2013-01-07 17:06 ` H.J. Lu
2013-01-07 18:41 ` Ian Lance Taylor
2013-01-07 19:32   ` H.J. Lu
2013-01-07 19:48     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).