From: Janne Grunau <[email protected]>
Uses xcrun to get compiler binary and sysroot path. The environment variable
DEVELOPER_DIR can be used to select a specific Xcode installation.
---
configure | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index afdcdd6..59c19a8 100755
--- a/configure
+++ b/configure
@@ -2566,11 +2566,20 @@ case "$toolchain" in
add_cflags -fno-strict-overflow -fstack-protector-all
add_ldflags -Wl,-z,relro -Wl,-z,now
;;
+ xcode-ios)
+ cc_default="$(xcrun -sdk iphoneos -f clang)"
+ sysroot_default="$(xcrun -sdk iphoneos --show-sdk-path)"
+ enable_weak cross_compile
+ target_os_default="darwin"
+ ;;
?*)
die "Unknown toolchain $toolchain"
;;
esac
+# set defaults for sysroot and target_os before they are used
+set_default sysroot target_os
+
test -n "$cross_prefix" && enable cross_compile
if enabled cross_compile; then
@@ -2587,7 +2596,7 @@ strip="${cross_prefix}${strip}"
sysinclude_default="${sysroot}/usr/include"
-set_default arch cc pkg_config sysinclude target_exec target_os
+set_default arch cc pkg_config sysinclude target_exec
enabled cross_compile || host_cc_default=$cc
set_default host_cc
--
2.3.0
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel