ref: 723fca7dd122c94e209864316e01535a23dc6d09
parent: ebac57ce9250aac85701f5258ec54f9cf9bf14a8
author: Gregor Jasny <[email protected]>
date: Fri Dec 11 03:00:07 EST 2020
configure: add darwin20 cross-compile support Change-Id: I91c0e832a6e76172397e97413329fd43edc81c78
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -919,8 +919,8 @@
add_ldflags "-mmacosx-version-min=10.15"
;;
*-darwin20-*)
- add_cflags "-mmacosx-version-min=10.16"
- add_ldflags "-mmacosx-version-min=10.16"
+ add_cflags "-mmacosx-version-min=10.16 -arch ${toolchain%%-*}"
+ add_ldflags "-mmacosx-version-min=10.16 -arch ${toolchain%%-*}"
;;
*-iphonesimulator-*)
add_cflags "-miphoneos-version-min=${IOS_VERSION_MIN}"