diff --git a/configure b/configure index 5dcaab14ae99..77638bc84a61 100755 --- a/configure +++ b/configure @@ -8646,7 +8646,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. diff --git a/configure.ac b/configure.ac index 85977482aeeb..7abd02f8b56d 100644 --- a/configure.ac +++ b/configure.ac @@ -1918,7 +1918,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.