From dbba12308ac1342fdcf928d9b2a73b1cd1b215bd Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 24 Sep 2018 10:13:23 +0200 Subject: [PATCH 1/3] Drop i386, deprecated in Xcode 10 --- build-libssl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-libssl.sh b/build-libssl.sh index 9e25dd7..6ca80e3 100755 --- a/build-libssl.sh +++ b/build-libssl.sh @@ -28,8 +28,8 @@ set -u DEFAULTVERSION="1.0.2l" # Default (=full) set of architectures (OpenSSL <= 1.0.2) or targets (OpenSSL >= 1.1.0) to build -DEFAULTARCHS="ios_x86_64 ios_i386 ios_arm64 ios_armv7s ios_armv7 tv_x86_64 tv_arm64 mac_x86_64 mac_i386" -DEFAULTTARGETS="ios-sim-cross-x86_64 ios-sim-cross-i386 ios64-cross-arm64 ios-cross-armv7s ios-cross-armv7 tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64 macos-i386" +DEFAULTARCHS="ios_x86_64 ios_arm64 ios_armv7s ios_armv7 tv_x86_64 tv_arm64 mac_x86_64" +DEFAULTTARGETS="ios-sim-cross-x86_64 ios64-cross-arm64 ios-cross-armv7s ios-cross-armv7 tvos-sim-cross-x86_64 tvos64-cross-arm64 macos64-x86_64" # Minimum iOS/tvOS SDK version to build for MACOS_MIN_SDK_VERSION="10.11" From 2262160df5a5e3045ad24fffae085e24a7986e34 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 24 Sep 2018 12:28:54 +0200 Subject: [PATCH 2/3] Fix ld MIN_SDK for simulator targets ld complains about mixing device and simulator objects in the tvOS target. Reason is that "tvos_version_min" seems to imply a device target, whereas simulator must use "tvos_simulator_version_min" instead. The stupid part of it is that ld displays a warning in iOS: ld: warning: URGENT: -ios_version_min is invalid for architecture x86/x86_64, inferring -ios_simulator_version_min. This will be an error in the future. whereas stops abruptly in tvOS: ld: building for tvOS, but linking in object file built for tvOS Simulator, file 'obj/a_d2i_fp.o' for architecture x86_64 ld should stop and avoid any poorly explained nonsense. --- create-openssl-framework.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/create-openssl-framework.sh b/create-openssl-framework.sh index c61862c..09c5fcd 100755 --- a/create-openssl-framework.sh +++ b/create-openssl-framework.sh @@ -62,10 +62,14 @@ if [ $FWTYPE == "dynamic" ]; then CROSS_SDK="${PLATFORM}${SDKVERSION}.sdk" SDK="${CROSS_TOP}/SDKs/${CROSS_SDK}" - if [[ $PLATFORM == "AppleTV"* ]]; then + if [[ $PLATFORM == AppleTVSimulator* ]]; then + MIN_SDK="-tvos_simulator_version_min 9.0" + elif [[ $PLATFORM == AppleTV* ]]; then MIN_SDK="-tvos_version_min 9.0" elif [[ $PLATFORM == MacOSX* ]]; then MIN_SDK="-macosx_version_min 10.11" + elif [[ $PLATFORM == iPhoneSimulator* ]]; then + MIN_SDK="-ios_simulator_version_min 8.0" else MIN_SDK="-ios_version_min 8.0" fi From 27564e9c8ddc897d117727debfbada66b41fbb13 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 24 Sep 2018 12:25:15 +0200 Subject: [PATCH 3/3] Gitignore lib directory --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index f65bfb8..9a83bd9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .*.swp bin src +lib include/openssl *.gz *.framework