public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] WebAssembly: Disable subdirectory configuration for unsupported LD
@ 2018-02-03 18:52 Maciej W. Rozycki
  2018-02-04 14:53 ` Pip Cet
  2018-02-13 13:42 ` Maciej W. Rozycki
  0 siblings, 2 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2018-02-03 18:52 UTC (permalink / raw)
  To: binutils; +Cc: gdb-patches, gcc-patches, Pip Cet

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.
---
Hi,

 It should be obvious.  Also this causes troubles with cross-target 
testing.  OK to apply?

  Maciej
---
 configure    |    3 +++
 configure.ac |    3 +++
 2 files changed, 6 insertions(+)

binutils-wasm32-no-ld.diff
Index: binutils/configure
===================================================================
--- binutils.orig/configure	2018-01-28 00:48:43.000000000 +0000
+++ binutils/configure	2018-02-02 05:48:19.239569799 +0000
@@ -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: binutils/configure.ac
===================================================================
--- binutils.orig/configure.ac	2018-01-28 00:48:43.000000000 +0000
+++ binutils/configure.ac	2018-02-02 05:48:09.444938712 +0000
@@ -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

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

end of thread, other threads:[~2018-02-13 13:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-03 18:52 [PATCH] WebAssembly: Disable subdirectory configuration for unsupported LD Maciej W. Rozycki
2018-02-04 14:53 ` Pip Cet
2018-02-13 13:42 ` Maciej W. Rozycki

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).