Fix libtool's macOS 11+ bug, copied from zthread port. --- dist/configure.orig 2023-09-23 00:19:17.000000000 -0700 +++ dist/configure 2023-09-24 12:45:18.000000000 -0700 @@ -8218,24 +8218,20 @@ enable_shared_with_static_runtimes=yes ;; - darwin* | rhapsody*) + darwin1.* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag='${wl}-undefined ${wl}suppress' ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + darwin*) # Darwin 1.3 on + case ${MACOSX_DEPLOYMENT_TARGET},$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc=no @@ -11277,24 +11273,20 @@ ld_shlibs_CXX=no fi ;; - darwin* | rhapsody*) + darwin1.* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + darwin*) # Darwin 1.3 on + case ${MACOSX_DEPLOYMENT_TARGET},$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc_CXX=no @@ -14837,24 +14829,20 @@ enable_shared_with_static_runtimes_F77=yes ;; - darwin* | rhapsody*) + darwin1.* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + darwin*) # Darwin 1.3 on + case ${MACOSX_DEPLOYMENT_TARGET},$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc_F77=no @@ -17438,24 +17426,20 @@ enable_shared_with_static_runtimes_GCJ=yes ;; - darwin* | rhapsody*) + darwin1.* | rhapsody*) case $host_os in rhapsody* | darwin1.[012]) allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' ;; - *) # Darwin 1.3 on - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' - else - case ${MACOSX_DEPLOYMENT_TARGET} in - 10.[012]) + darwin*) # Darwin 1.3 on + case ${MACOSX_DEPLOYMENT_TARGET},$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; - 10.*) + *) allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' ;; esac - fi ;; esac archive_cmds_need_lc_GCJ=no