]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
AMDGCN: Disable subdirectory configuration for unsupported GAS and LD
authorMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 18 Feb 2026 17:32:32 +0000 (17:32 +0000)
committerMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 18 Feb 2026 17:32:32 +0000 (17:32 +0000)
The `amdgcn' target is not supported by GAS or LD, so disable building
in the respective subdirectories, removing configuration errors such as:

This target is no longer supported in gas
make[1]: *** [Makefile:5473: configure-gas] Error 1

and:

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

in builds where no explicit `--disable-gas' and `--disable-ld' options
have been used with the top-level `configure' script.  Users must not
have to disable features selected by default to get a working
configuration.

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

configure
configure.ac

index 2551fe0275280243948a73943527322e531c2b08..4c2aa195810483bc8f8cdd97a855e771a12ca281 100755 (executable)
--- a/configure
+++ b/configure
@@ -3939,6 +3939,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs sim target-rda"
     ;;
   amdgcn*-*-*)
+    noconfigdirs="$noconfigdirs ld gas"
     ;;
   arm-*-darwin*)
     noconfigdirs="$noconfigdirs ld gas gdb gprof"
index 94321ffd20ab3ab67575cbb948d696572cb90260..cae0042411ba23a3d1a63a77bbb1faedddded93e 100644 (file)
@@ -1108,6 +1108,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs sim target-rda"
     ;;
   amdgcn*-*-*)
+    noconfigdirs="$noconfigdirs ld gas"
     ;;
   arm-*-darwin*)
     noconfigdirs="$noconfigdirs ld gas gdb gprof"