Skip to content

Commit db0358a

Browse files
committed
Allow cross-compilation on macOS
1 parent ffece55 commit db0358a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

configure

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ then
330330
*-apple-ios*)
331331
ac_sys_system=iOS
332332
;;
333+
*-*-darwin*)
334+
ac_sys_system=Darwin
335+
;;
333336
*-*-vxworks*)
334337
ac_sys_system=VxWorks
335338
;;
@@ -790,6 +793,15 @@ if test "$cross_compiling" = yes; then
790793
;;
791794
esac
792795
;;
796+
*-*-darwin*)
797+
case "$host_cpu" in
798+
arm*)
799+
_host_ident=arm
800+
;;
801+
*)
802+
_host_ident=$host_cpu
803+
esac
804+
;;
793805
*-*-vxworks*)
794806
_host_ident=$host_cpu
795807
;;

0 commit comments

Comments
 (0)