@@ -33,8 +33,8 @@ MACOSX_DEPLOYMENT_TARGET=10.8
33
33
PYTHON_VERSION =3.7.5
34
34
PYTHON_VER =$(basename $(PYTHON_VERSION ) )
35
35
36
- OPENSSL_VERSION_NUMBER =1.0.2
37
- OPENSSL_REVISION =t
36
+ OPENSSL_VERSION_NUMBER =1.1.1
37
+ OPENSSL_REVISION =d
38
38
OPENSSL_VERSION =$(OPENSSL_VERSION_NUMBER )$(OPENSSL_REVISION )
39
39
40
40
BZIP2_VERSION =1.0.8
@@ -50,7 +50,7 @@ CFLAGS-macOS=-mmacosx-version-min=$(MACOSX_DEPLOYMENT_TARGET)
50
50
51
51
# iOS targets
52
52
TARGETS-iOS =iphonesimulator.x86_64 iphoneos.arm64
53
- CFLAGS-iOS=-mios-version-min =7 .0
53
+ CFLAGS-iOS=-mios-version-min =8 .0
54
54
CFLAGS-iphoneos.arm64 =-fembed-bitcode
55
55
56
56
# tvOS targets
@@ -205,8 +205,9 @@ ifeq ($$(findstring simulator,$$(SDK-$1)),)
205
205
sed -ie "s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!" $$(OPENSSL_DIR-$1)/crypto/ui/ui_openssl.c
206
206
endif
207
207
ifeq ($$(findstring iphone,$$(SDK-$1 ) ) ,)
208
- # Patch apps/speed.c to not use fork() since it's not available on tvOS
208
+ # Patch apps/speed.c and apps/ocsp.c to not use fork() since it's not available on tvOS
209
209
sed -ie 's/define HAVE_FORK 1/define HAVE_FORK 0/' $$(OPENSSL_DIR-$1)/apps/speed.c
210
+ sed -ie 's/define HAVE_FORK 1/define HAVE_FORK 0/' $$(OPENSSL_DIR-$1)/apps/ocsp.c
210
211
# Patch Configure to build for tvOS or watchOS, not iOS
211
212
LC_ALL=C sed -ie 's/-D_REENTRANT:iOS/-D_REENTRANT:$2/' $$(OPENSSL_DIR-$1)/Configure
212
213
endif
@@ -215,13 +216,13 @@ endif
215
216
ifeq ($2,macOS)
216
217
cd $$(OPENSSL_DIR-$1) && \
217
218
CC="$$(CC-$1)" MACOSX_DEPLOYMENT_TARGET=$$(MACOSX_DEPLOYMENT_TARGET) \
218
- ./Configure darwin64-x86_64-cc --openssldir=$(PROJECT_DIR)/build/$2/openssl
219
+ ./Configure darwin64-x86_64-cc no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
219
220
else
220
221
cd $$(OPENSSL_DIR-$1) && \
221
222
CC="$$(CC-$1)" \
222
223
CROSS_TOP="$$(dir $$(SDK_ROOT-$1)).." \
223
224
CROSS_SDK="$$(notdir $$(SDK_ROOT-$1))" \
224
- ./Configure iphoneos-cross no-asm --openssldir=$(PROJECT_DIR)/build/$2/openssl
225
+ ./Configure iphoneos-cross no-asm no-tests --prefix=$(PROJECT_DIR)/build/$2/openssl --openssldir=$(PROJECT_DIR)/build/$2/openssl
225
226
endif
226
227
227
228
# Build OpenSSL
0 commit comments