Support -ios triple

Autoconf hasn’t had an update since 2014, and it doesn’t look like it will soon[1]
This updates config.{guess,sub}

It adds support for e.g. `-ios`, which allows to have targets like `aarch64-apple-ios`.

It basically does exactly what the config.guess script says:
> It is advised that you download the most up to date version of the config scripts from

The configure.ac script has been updated to relax `*-apple-darwin*` to `*-apple-*`.
Similarly the `.gitignore` and `autogen.sh` needed to be updated to respect the
newer `config.{sub,guess}`

—
[1]: http://lists.gnu.org/archive/html/autoconf/2016-07/msg00017.html
This commit is contained in:
Moritz Angermann
2017-05-16 08:32:06 +08:00
parent c0cc9f1df9
commit 19ab448d84
5 changed files with 3305 additions and 4 deletions

1
.gitignore vendored
View File

@@ -8,7 +8,6 @@ Makefile
Makefile.in Makefile.in
aclocal.m4 aclocal.m4
compile compile
config.*
configure configure
depcomp depcomp
doc/libffi.info doc/libffi.info

View File

@@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
exec autoreconf -v -f -i exec autoreconf -v -i

1466
config.guess vendored Normal file

File diff suppressed because it is too large Load Diff

1836
config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -191,13 +191,13 @@ fi
FFI_EXEC_TRAMPOLINE_TABLE=0 FFI_EXEC_TRAMPOLINE_TABLE=0
case "$target" in case "$target" in
*arm*-apple-darwin* | aarch64-apple-darwin*) *arm*-apple-* | aarch64-apple-*)
FFI_EXEC_TRAMPOLINE_TABLE=1 FFI_EXEC_TRAMPOLINE_TABLE=1
AC_DEFINE(FFI_EXEC_TRAMPOLINE_TABLE, 1, AC_DEFINE(FFI_EXEC_TRAMPOLINE_TABLE, 1,
[Cannot use PROT_EXEC on this target, so, we revert to [Cannot use PROT_EXEC on this target, so, we revert to
alternative means]) alternative means])
;; ;;
*-apple-darwin* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*) *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1, AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
[Cannot use malloc on this target, so, we revert to [Cannot use malloc on this target, so, we revert to
alternative means]) alternative means])