2009-10-19 11:35:54 +02:00
|
|
|
Index: gold/configure
|
|
|
|
===================================================================
|
|
|
|
--- gold/configure.orig 2009-10-10 01:20:44.000000000 +0200
|
|
|
|
+++ gold/configure 2009-10-13 17:13:57.000000000 +0200
|
|
|
|
@@ -762,6 +762,7 @@ with_sysroot
|
|
|
|
enable_threads
|
|
|
|
enable_plugins
|
|
|
|
enable_targets
|
|
|
|
+enable_ld_targets
|
|
|
|
enable_dependency_tracking
|
|
|
|
enable_nls
|
|
|
|
enable_werror
|
|
|
|
@@ -1406,6 +1407,7 @@ Optional Features:
|
2009-01-22 13:04:44 +01:00
|
|
|
--enable-threads multi-threaded linking
|
2009-10-19 11:35:54 +02:00
|
|
|
--enable-plugins linker plugins
|
2009-01-22 13:04:44 +01:00
|
|
|
--enable-targets alternative target configurations
|
|
|
|
+ --enable-ld-targets alternative target configurations
|
|
|
|
--disable-dependency-tracking speeds up one-time build
|
|
|
|
--enable-dependency-tracking do not reject slow dependency extractors
|
|
|
|
--disable-nls do not use Native Language Support
|
2009-10-19 11:35:54 +02:00
|
|
|
@@ -3297,9 +3299,29 @@ else
|
|
|
|
fi
|
2009-01-22 13:04:44 +01:00
|
|
|
|
|
|
|
|
2009-10-19 11:35:54 +02:00
|
|
|
+# Check whether --enable-ld-targets was given.
|
|
|
|
+if test "${enable_ld_targets+set}" = set; then :
|
|
|
|
+ enableval=$enable_ld_targets; case "${enableval}" in
|
2009-01-22 13:04:44 +01:00
|
|
|
+ yes | "")
|
2009-10-19 11:35:54 +02:00
|
|
|
+ as_fn_error "--enable-ld-targets option must specify target names or 'all'" "$LINENO" 5
|
2009-01-22 13:04:44 +01:00
|
|
|
+ ;;
|
|
|
|
+ no)
|
|
|
|
+ enable_ld_targets=
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ enable_ld_targets=$enableval
|
|
|
|
+ ;;
|
|
|
|
+esac
|
|
|
|
+else
|
|
|
|
+ # For now, enable all targets by default
|
|
|
|
+ enable_ld_targets=$enable_targets
|
|
|
|
+
|
2009-10-19 11:35:54 +02:00
|
|
|
+fi
|
|
|
|
+
|
2009-01-22 13:04:44 +01:00
|
|
|
+
|
|
|
|
# Canonicalize the enabled targets.
|
|
|
|
-if test -n "$enable_targets"; then
|
|
|
|
- for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
|
|
|
|
+if test -n "$enable_ld_targets"; then
|
|
|
|
+ for targ in `echo $enable_ld_targets | sed -e 's/,/ /g'`; do
|
|
|
|
result=`$ac_config_sub $targ 2>/dev/null`
|
|
|
|
if test -n "$result"; then
|
|
|
|
canon_targets="$canon_targets $result"
|
2009-10-19 11:35:54 +02:00
|
|
|
Index: gold/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- gold/configure.ac.orig 2009-10-10 01:20:44.000000000 +0200
|
|
|
|
+++ gold/configure.ac 2009-10-13 17:12:56.000000000 +0200
|
|
|
|
@@ -84,9 +84,26 @@ esac],
|
2009-01-22 13:04:44 +01:00
|
|
|
enable_targets=all
|
|
|
|
])
|
|
|
|
|
|
|
|
+AC_ARG_ENABLE([ld-targets],
|
|
|
|
+[ --enable-ld-targets alternative target configurations],
|
|
|
|
+[case "${enableval}" in
|
|
|
|
+ yes | "")
|
|
|
|
+ AC_MSG_ERROR([--enable-ld-targets option must specify target names or 'all'])
|
|
|
|
+ ;;
|
|
|
|
+ no)
|
|
|
|
+ enable_ld_targets=
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ enable_ld_targets=$enableval
|
|
|
|
+ ;;
|
|
|
|
+esac],
|
|
|
|
+[# For now, enable all targets by default
|
|
|
|
+ enable_ld_targets=$enable_targets
|
|
|
|
+])
|
|
|
|
+
|
|
|
|
# Canonicalize the enabled targets.
|
|
|
|
-if test -n "$enable_targets"; then
|
|
|
|
- for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
|
|
|
|
+if test -n "$enable_ld_targets"; then
|
|
|
|
+ for targ in `echo $enable_ld_targets | sed -e 's/,/ /g'`; do
|
|
|
|
result=`$ac_config_sub $targ 2>/dev/null`
|
|
|
|
if test -n "$result"; then
|
|
|
|
canon_targets="$canon_targets $result"
|
2009-10-19 11:35:54 +02:00
|
|
|
Index: ld/configure
|
|
|
|
===================================================================
|
|
|
|
--- ld/configure.orig 2009-08-22 19:59:33.000000000 +0200
|
|
|
|
+++ ld/configure 2009-10-13 17:12:56.000000000 +0200
|
|
|
|
@@ -1547,6 +1547,7 @@ Optional Features:
|
|
|
|
--enable-maintainer-mode enable make rules and dependencies not useful
|
|
|
|
(and sometimes confusing) to the casual installer
|
2007-10-09 04:28:58 +02:00
|
|
|
--enable-targets alternative target configurations
|
|
|
|
+ --enable-ld-targets alternative target configurations
|
|
|
|
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
|
2009-01-22 13:04:44 +01:00
|
|
|
--enable-got=<type> GOT handling scheme (target, single, negative,
|
|
|
|
multigot)
|
2009-10-19 11:35:54 +02:00
|
|
|
@@ -12818,7 +12819,7 @@ all_libpath=
|
2007-10-09 04:28:58 +02:00
|
|
|
|
|
|
|
rm -f tdirs
|
|
|
|
|
|
|
|
-for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
|
|
|
|
+for targ_alias in `echo $target_alias $enable_ld_targets | sed 's/,/ /g'`
|
|
|
|
do
|
|
|
|
if test "$targ_alias" = "all"; then
|
|
|
|
all_targets=true
|
2009-10-19 11:35:54 +02:00
|
|
|
Index: ld/configure.in
|
|
|
|
===================================================================
|
|
|
|
--- ld/configure.in.orig 2009-08-22 19:59:33.000000000 +0200
|
|
|
|
+++ ld/configure.in 2009-10-13 17:12:56.000000000 +0200
|
|
|
|
@@ -22,6 +22,14 @@ AC_ARG_ENABLE(targets,
|
2007-10-09 04:28:58 +02:00
|
|
|
no) enable_targets= ;;
|
|
|
|
*) enable_targets=$enableval ;;
|
|
|
|
esac])dnl
|
|
|
|
+AC_ARG_ENABLE(ld-targets,
|
|
|
|
+[ --enable-ld-targets alternative target configurations],
|
|
|
|
+[case "${enableval}" in
|
|
|
|
+ yes | "") AC_ERROR(enable-ld-targets option must specify target names or 'all')
|
|
|
|
+ ;;
|
|
|
|
+ no) enable_ld_targets= ;;
|
|
|
|
+ *) enable_ld_targets=$enableval ;;
|
|
|
|
+esac], [enable_ld_targets=$enable_targets])dnl
|
|
|
|
AC_ARG_ENABLE(64-bit-bfd,
|
|
|
|
[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
|
|
|
|
[case "${enableval}" in
|
2009-10-19 11:35:54 +02:00
|
|
|
@@ -190,7 +198,7 @@ dnl not permit literal newlines in an AC
|
2007-10-09 04:28:58 +02:00
|
|
|
dnl file.
|
|
|
|
rm -f tdirs
|
|
|
|
|
|
|
|
-for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
|
|
|
|
+for targ_alias in `echo $target_alias $enable_ld_targets | sed 's/,/ /g'`
|
|
|
|
do
|
|
|
|
if test "$targ_alias" = "all"; then
|
|
|
|
all_targets=true
|