@@ -994,23 +994,25 @@ _LT_EOF
994
994
rm -f conftest.err libconftest.a conftest conftest.c
995
995
rm -rf conftest.dSYM
996
996
] )
997
- case $host_os in
998
- rhapsody* | darwin1.[ [ 012] ] )
997
+ # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
998
+ # build without first building modern cctools / linker.
999
+ case $host_cpu-$host_os in
1000
+ *-rhapsody* | *-darwin1.[ [ 012] ] )
999
1001
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1000
- darwin1.*)
1002
+ *- darwin1.*)
1001
1003
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1002
- darwin*) # darwin 5.x on
1003
- # if running on 10.5 or later, the deployment target defaults
1004
- # to the OS version, if on x86, and 10.4, the deployment
1005
- # target defaults to 10.4. Don't you love it?
1006
- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1007
- 10.0,*86*-darwin8*|10.0,*-darwin[ [ 91] ] *)
1008
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1004
+ *-darwin*)
1005
+ # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
1006
+ # deployment target is forced to an earlier version.
1007
+ case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
1008
+ UNSET,*-darwin[ [ 89] ] *|UNSET,*-darwin[ [ 12] ] [ [ 0123456789] ] *)
1009
+ ;;
1009
1010
10.[ [ 012] ] [ [ ,.] ] *)
1010
- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1011
- 10.*)
1012
- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1013
- esac
1011
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1012
+ ;;
1013
+ *)
1014
+ ;;
1015
+ esac
1014
1016
;;
1015
1017
esac
1016
1018
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
@@ -1033,7 +1035,7 @@ _LT_EOF
1033
1035
1034
1036
# _LT_DARWIN_LINKER_FEATURES
1035
1037
# --------------------------
1036
- # Checks for linker and compiler features on darwin
1038
+ # Checks for linker and compiler features on Darwin / macOS / iOS
1037
1039
m4_defun([ _LT_DARWIN_LINKER_FEATURES] ,
1038
1040
[
1039
1041
m4_require([ _LT_REQUIRED_DARWIN_CHECKS] )
@@ -2323,16 +2325,6 @@ freebsd* | dragonfly*)
2323
2325
esac
2324
2326
;;
2325
2327
2326
- gnu*)
2327
- version_type=linux
2328
- need_lib_prefix=no
2329
- need_version=no
2330
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2331
- soname_spec='${libname}${release}${shared_ext}$major'
2332
- shlibpath_var=LD_LIBRARY_PATH
2333
- hardcode_into_libs=yes
2334
- ;;
2335
-
2336
2328
haiku*)
2337
2329
version_type=linux
2338
2330
need_lib_prefix=no
@@ -2454,7 +2446,7 @@ linux*oldld* | linux*aout* | linux*coff*)
2454
2446
# project, but have not yet been accepted: they are GCC-local changes
2455
2447
# for the time being. (See
2456
2448
# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
2457
- linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
2449
+ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
2458
2450
version_type=linux
2459
2451
need_lib_prefix=no
2460
2452
need_version=no
@@ -4878,7 +4870,7 @@ _LT_EOF
4878
4870
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4879
4871
case $host_cpu in
4880
4872
hppa*64*)
4881
- _LT_TAGVAR(archive_cmds, $1 )='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4873
+ _LT_TAGVAR(archive_cmds, $1 )='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4882
4874
;;
4883
4875
ia64*)
4884
4876
_LT_TAGVAR(archive_cmds, $1 )='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
@@ -4890,7 +4882,7 @@ _LT_EOF
4890
4882
else
4891
4883
case $host_cpu in
4892
4884
hppa*64*)
4893
- _LT_TAGVAR(archive_cmds, $1 )='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4885
+ _LT_TAGVAR(archive_cmds, $1 )='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4894
4886
;;
4895
4887
ia64*)
4896
4888
_LT_TAGVAR(archive_cmds, $1 )='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
@@ -5867,7 +5859,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5867
5859
aCC*)
5868
5860
case $host_cpu in
5869
5861
hppa*64*)
5870
- _LT_TAGVAR(archive_cmds, $1 )='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5862
+ _LT_TAGVAR(archive_cmds, $1 )='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5871
5863
;;
5872
5864
ia64*)
5873
5865
_LT_TAGVAR(archive_cmds, $1 )='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
@@ -5891,7 +5883,7 @@ if test "$_lt_caught_CXX_error" != yes; then
5891
5883
if test $with_gnu_ld = no; then
5892
5884
case $host_cpu in
5893
5885
hppa*64*)
5894
- _LT_TAGVAR(archive_cmds, $1 )='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5886
+ _LT_TAGVAR(archive_cmds, $1 )='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5895
5887
;;
5896
5888
ia64*)
5897
5889
_LT_TAGVAR(archive_cmds, $1 )='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
0 commit comments