Skip to content

Commit 332522e

Browse files
configury: update to recent versions
Copied from GCC tip. Fixes #84
1 parent d0f5e95 commit 332522e

File tree

8 files changed

+1665
-1522
lines changed

8 files changed

+1665
-1522
lines changed

config.guess

Lines changed: 418 additions & 194 deletions
Large diffs are not rendered by default.

config.sub

Lines changed: 878 additions & 801 deletions
Large diffs are not rendered by default.

config/libtool.m4

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -994,23 +994,25 @@ _LT_EOF
994994
rm -f conftest.err libconftest.a conftest conftest.c
995995
rm -rf conftest.dSYM
996996
])
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]])
9991001
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1000-
darwin1.*)
1002+
*-darwin1.*)
10011003
_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+
;;
10091010
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
10141016
;;
10151017
esac
10161018
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
@@ -1033,7 +1035,7 @@ _LT_EOF
10331035

10341036
# _LT_DARWIN_LINKER_FEATURES
10351037
# --------------------------
1036-
# Checks for linker and compiler features on darwin
1038+
# Checks for linker and compiler features on Darwin / macOS / iOS
10371039
m4_defun([_LT_DARWIN_LINKER_FEATURES],
10381040
[
10391041
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
@@ -2323,16 +2325,6 @@ freebsd* | dragonfly*)
23232325
esac
23242326
;;
23252327
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-
23362328
haiku*)
23372329
version_type=linux
23382330
need_lib_prefix=no
@@ -2454,7 +2446,7 @@ linux*oldld* | linux*aout* | linux*coff*)
24542446
# project, but have not yet been accepted: they are GCC-local changes
24552447
# for the time being. (See
24562448
# 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)
24582450
version_type=linux
24592451
need_lib_prefix=no
24602452
need_version=no
@@ -4878,7 +4870,7 @@ _LT_EOF
48784870
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
48794871
case $host_cpu in
48804872
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'
48824874
;;
48834875
ia64*)
48844876
_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
48904882
else
48914883
case $host_cpu in
48924884
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'
48944886
;;
48954887
ia64*)
48964888
_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
58675859
aCC*)
58685860
case $host_cpu in
58695861
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'
58715863
;;
58725864
ia64*)
58735865
_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
58915883
if test $with_gnu_ld = no; then
58925884
case $host_cpu in
58935885
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'
58955887
;;
58965888
ia64*)
58975889
_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

Comments
 (0)