Skip to content

Commit 2d5e8df

Browse files
committedNov 10, 2024
Update to build OpenSSL 3.x #72
1 parent 2da2146 commit 2d5e8df

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎openssl/openssl-build-phase1.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ buildCatalyst()
207207
ARCH=$1
208208

209209
# disabe bitcode for openssl 3
210-
if [[ "$OPENSSL_VERSION" = "openssl-3.0"* ]]; then
210+
if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then
211211
CC_BITCODE_FLAG=""
212212
else
213213
CC_BITCODE_FLAG="-fembed-bitcode"
@@ -312,7 +312,7 @@ buildTVOS()
312312
LANG=C sed -i -- 's/fork()/-1/' "./test/drbgtest.c"
313313
LANG=C sed -i -- 's/!defined(OPENSSL_NO_ASYNC)/defined(HAVE_FORK)/' "./crypto/async/arch/async_posix.h"
314314
fi
315-
if [[ "$OPENSSL_VERSION" = "openssl-3.0"* ]]; then
315+
if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then
316316
# LANG=C sed -i -- 's/!defined(OPENSSL_NO_POSIX_IO)/defined(HAVE_FORK)/' "./apps/ocsp.c"
317317
LANG=C sed -i -- 's/fork()/-1/' "./apps/speed.c"
318318
LANG=C sed -i -- 's/fork()/-1/' "./apps/lib/http_server.c"
@@ -393,7 +393,7 @@ buildTVOSsim()
393393
LANG=C sed -i -- 's/fork()/-1/' "./test/drbgtest.c"
394394
LANG=C sed -i -- 's/!defined(OPENSSL_NO_ASYNC)/defined(HAVE_FORK)/' "./crypto/async/arch/async_posix.h"
395395
fi
396-
if [[ "$OPENSSL_VERSION" = "openssl-3.0"* ]]; then
396+
if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then
397397
# LANG=C sed -i -- 's/!defined(OPENSSL_NO_POSIX_IO)/defined(HAVE_FORK)/' "./apps/ocsp.c"
398398
LANG=C sed -i -- 's/fork()/-1/' "./apps/speed.c"
399399
LANG=C sed -i -- 's/fork()/-1/' "./apps/lib/http_server.c"

‎openssl/openssl-build-phase2.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ buildIOS()
151151
export BUILD_TOOLS="${DEVELOPER}"
152152
ADDCFLAG=""
153153
DSO_LDFLAGS="DSO_LDFLAGS=-fembed-bitcode"
154-
if [[ "$OPENSSL_VERSION" = "openssl-3.0"* ]]; then
154+
if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then
155155
# disable bitcode for openssl 3
156156
export CC="${BUILD_TOOLS}/usr/bin/gcc -arch ${ARCH}"
157157
DSO_LDFLAGS=""
@@ -220,7 +220,7 @@ buildIOSsim()
220220
fi
221221

222222
# set up exports for build
223-
if [[ "$OPENSSL_VERSION" = "openssl-3.0"* ]]; then
223+
if [[ "$OPENSSL_VERSION" = "openssl-3"* ]]; then
224224
if [[ "${ARCH}" == "armv7" || "${ARCH}" == "armv7s" || "${ARCH}" == "i386" ]]; then
225225
# armv7 and i386 doesn't work with atomic
226226
export CFLAGS=" -Os -miphoneos-version-min=${MIPHONEOS} -DBROKEN_CLANG_ATOMICS -arch ${ARCH} ${RUNTARGET} "

0 commit comments

Comments
 (0)