forked from pool/binutils
66 lines
2.4 KiB
Diff
66 lines
2.4 KiB
Diff
--- ld/configure
|
|
+++ ld/configure
|
|
@@ -857,6 +857,7 @@
|
|
--enable-fast-install=PKGS optimize for fast installation default=yes
|
|
--disable-libtool-lock avoid locking (might break parallel builds)
|
|
--enable-targets alternative target configurations
|
|
+ --enable-ld-targets alternative target configurations
|
|
--enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
|
|
--enable-werror treat compile warnings as errors
|
|
--enable-build-warnings enable build-time compiler warnings
|
|
@@ -4172,6 +4173,19 @@
|
|
no) enable_targets= ;;
|
|
*) enable_targets=$enableval ;;
|
|
esac
|
|
+fi; # Check whether --enable-ld-targets or --disable-ld-targets was given.
|
|
+if test "${enable_ld_targets+set}" = set; then
|
|
+ enableval="$enable_ld_targets"
|
|
+ case "${enableval}" in
|
|
+ yes | "") { { echo "$as_me:$LINENO: error: enable-ld-targets option must specify target names or 'all'" >&5
|
|
+echo "$as_me: error: enable-ld-targets option must specify target names or 'all'" >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+ ;;
|
|
+ no) enable_ld_targets= ;;
|
|
+ *) enable_ld_targets=$enableval ;;
|
|
+esac
|
|
+else
|
|
+ enable_ld_targets=$enable_targets
|
|
fi; # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
|
|
if test "${enable_64_bit_bfd+set}" = set; then
|
|
enableval="$enable_64_bit_bfd"
|
|
@@ -7430,7 +7444,7 @@
|
|
|
|
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
|
|
--- ld/configure.in
|
|
+++ ld/configure.in
|
|
@@ -22,6 +22,14 @@
|
|
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
|
|
@@ -152,7 +160,7 @@
|
|
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
|