WebAssembly: Disable subdirectory configuration for unsupported LD
authorMaciej W. Rozycki <macro@mips.com>
Tue, 13 Feb 2018 13:01:33 +0000 (13:01 +0000)
committerMaciej W. Rozycki <macro@gcc.gnu.org>
Tue, 13 Feb 2018 13:01:33 +0000 (13:01 +0000)
Remove an LD subdirectory configuration error:

*** ld does not support target wasm32-unknown-none
*** see ld/configure.tgt for supported targets
make[1]: *** [configure-ld] Error 1

which prevents binutils for the WebAssembly target from being built
unless an explicit `--disable-ld' configuration option has been given.
Users must not have to disable features selected by default to get a
working configuration.

/
* configure.ac <wasm32-*-*> (noconfigdirs): Add `ld'.
* configure: Regenerate.

From-SVN: r257624

ChangeLog
configure
configure.ac

index 7f2c543..d72c91c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-02-13  Maciej W. Rozycki  <macro@mips.com>
+
+       * configure.ac <wasm32-*-*> (noconfigdirs): Add `ld'.
+       * configure: Regenerate.
+
 2018-01-18  Boris Kolpackov  <boris@codesynthesis.com>
 
        * MAINTAINERS (write after approval): Add myself.
index 2d615a9..0601395 100755 (executable)
--- a/configure
+++ b/configure
@@ -3860,6 +3860,9 @@ case "${target}" in
   vax-*-*)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     ;;
+  wasm32-*-*)
+    noconfigdirs="$noconfigdirs ld"
+    ;;
 esac
 
 # If we aren't building newlib, then don't build libgloss, since libgloss
index aae9450..c343333 100644 (file)
@@ -1191,6 +1191,9 @@ case "${target}" in
   vax-*-*)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     ;;
+  wasm32-*-*)
+    noconfigdirs="$noconfigdirs ld"
+    ;;
 esac
 
 # If we aren't building newlib, then don't build libgloss, since libgloss