]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure, Darwin: Correct a pasto in host-shared processing.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 26 Jun 2022 08:24:28 +0000 (09:24 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Tue, 16 May 2023 19:04:40 +0000 (20:04 +0100)
We do, of course, mean $host not $target in this case.  Corrected thus.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
ChangeLog:

* configure: Regenerate.
* configure.ac: Correct use of $host.

(cherry picked from commit 1edfc8f2d3307a3ffa077a605f432832d7715462)

configure
configure.ac

index e218a19e333bd5ba03f8fa1d3986b425279532cf..74775c31c58321698db30f733e18eb66c35edf3f 100755 (executable)
--- a/configure
+++ b/configure
@@ -8277,7 +8277,7 @@ fi
 # Check whether --enable-host-shared was given.
 if test "${enable_host_shared+set}" = set; then :
   enableval=$enable_host_shared; host_shared=$enableval
- case $target in
+ case $host in
    x86_64-*-darwin* | aarch64-*-darwin*)
      if test x$host_shared != xyes ; then
        # PIC is the default, and actually cannot be switched off.
@@ -8287,7 +8287,7 @@ if test "${enable_host_shared+set}" = set; then :
   *) ;;
  esac
 else
-  case $target in
+  case $host in
   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
   *) host_shared=no ;;
  esac
index 7e8e628b3255b87c71f4c0d67026b81410b91f14..3613860460e41a8a58d024210acff20a7244437f 100644 (file)
@@ -1872,7 +1872,7 @@ AC_ARG_ENABLE(host-shared,
 [AS_HELP_STRING([--enable-host-shared],
                [build host code as shared libraries])],
 [host_shared=$enableval
- case $target in
+ case $host in
    x86_64-*-darwin* | aarch64-*-darwin*)
      if test x$host_shared != xyes ; then
        # PIC is the default, and actually cannot be switched off.
@@ -1881,7 +1881,7 @@ AC_ARG_ENABLE(host-shared,
      fi ;;
   *) ;;
  esac],
-[case $target in
+[case $host in
   x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
   *) host_shared=no ;;
  esac])