Skip to content

Commit 4f3334c

Browse files
authored
OpenSSL ASM on (#583)
* xcframework to include build id * openssl ASM = ON * curl build ++ * Update OpenSSL CMake ASM support * Bundle fix (cherry picked from commit 77e82ba)
1 parent 29e1474 commit 4f3334c

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

‎.github/workflows/build-ios.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ jobs:
416416
working-directory: ${{ env.GITHUB_WORKSPACE }}
417417
run: scripts/macos/xcframework_all.sh
418418
env:
419+
BUNDLE: 0
419420
GA_CI_SECRET: ${{ secrets.CI_SECRET }}
420421
- name: List output directory xout
421422
run: ls -lah ./xout

‎apothecary/apothecary‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ function frameworkFormula() {
19911991
lipo -info "$lib_a"
19921992
#xcrun codesign --sign - "$lib_a" || true
19931993
. "$SECURE_SCRIPT"
1994-
secure "$lib_a" "$LIB_NAME" "$VERSION"
1994+
secure "$lib_a" "$LIB_NAME" "$VERSION" "$DEFINES" "$BUILD_ID" "${FORMULA_DEPENDS[*]}"
19951995
done
19961996

19971997
echoSuccess " xcframework for [$TYPE] transferring to [$XDIR]"
@@ -2276,7 +2276,7 @@ function xframeworkFormula() {
22762276
lipo -info "$lib_a"
22772277
#xcrun codesign --sign - "$lib_a" || true
22782278
. "$SECURE_SCRIPT"
2279-
secure "$lib_a" "$LIB_NAME" "$VERSION"
2279+
secure "$lib_a" "$LIB_NAME" "$VERSION" "$DEFINES" "$BUILD_ID" "${FORMULA_DEPENDS[*]}"
22802280
done
22812281

22822282
echo " -- deploy to xcframework [$X_LIBS]..."

‎apothecary/formulas/curl/curl.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SHA1="c4a973118684745cb03c38987d131ccbce9e7ab1"
1717
SHA256="d9b327997999045a24cda50f3983e69e51c516bd8be6ef9842fc7f99135e33bb"
1818
CACERT_DATE=2026-07-16
1919
CACERT_SHA256="3ff344e30b9b1ed2971044eabb438a08f2e2245ddb5f8ab1a3ad8b63ab4eaf91"
20-
BUILD_ID=7
20+
BUILD_ID=9
2121
DEFINES=""
2222
USE_OPENSSL=ON
2323

‎apothecary/formulas/openssl/openssl.sh‎

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@ FORMULA_DEPENDS=("zlib")
1111
VER=4.0.1
1212
VERDIR=4.0.0
1313
VER_TAG="4.0"
14-
OPENSSL_CMAKE_COMMIT=09cf1b80a64a5de840c2cbc69286c092821bcc39
14+
OPENSSL_CMAKE_COMMIT=2186f38a68635ada55434b1fc9ee78fdf04a1718
1515
SHA1=eaf5ac943564691e22c3a303bc8ffc9ea928fd5a
1616
SHA256=2db3f3a0d6ea4b59e1f094ace2c8cd536dffb87cdc39084c5afa1e6f7f37dd09
1717

18-
BUILD_ID=7
18+
BUILD_ID=9
1919

2020
CSTANDARD=c17 # c89 | c99 | c11 | gnu11
2121
SITE=https://www.openssl.org
2222
MIRROR=https://www.openssl.org
2323
GIT_URL=https://github.com/danoli3/openssl-cmake
2424

2525
# openssl-cmake uses OPENSSL_ASM (not OPENSSL_NO_ASM) as the master switch.
26-
# Passing only OPENSSL_NO_ASM=ON is overridden when Perl is present (ASM defaults ON),
27-
# which breaks macOS x86_64 / some Windows static links (missing asm symbols).
26+
# Enable assembly where the platform toolchain supports it. The Visual Studio
27+
# branch below still overrides this because its static build has no complete
28+
# NASM/MASM pipeline.
2829
DEFINES="-DOPENSSL_NO_DEPRECATED=OFF \
2930
-DOPENSSL_NO_COMP=ON \
3031
-DOPENSSL_NO_EC_NISTP_64_GCC_128=ON \
@@ -39,8 +40,8 @@ DEFINES="-DOPENSSL_NO_DEPRECATED=OFF \
3940
-DOPENSSL_NO_UNIT_TEST=ON \
4041
-DOPENSSL_NO_WEAK_SSL_CIPHERS=OFF \
4142
-DOPENSSL_NO_ASAN=ON \
42-
-DOPENSSL_ASM=OFF \
43-
-DOPENSSL_NO_ASM=ON \
43+
-DOPENSSL_ASM=ON \
44+
-DOPENSSL_NO_ASM=OFF \
4445
-DOPENSSL_NO_CRYPTO_MDEBUG=ON \
4546
-DOPENSSL_NO_DEVCRYPTOENG=ON \
4647
-DOPENSSL_NO_EGD=ON \
@@ -54,6 +55,7 @@ DEFINES="-DOPENSSL_NO_DEPRECATED=OFF \
5455
-DOPENSSL_STATIC_ENGINE=ON \
5556
-DOPENSSL_THREADS=ON \
5657
-DOPENSSL_RAND_SEED=os \
58+
-DOPENSSL_BUILD_APPS=OFF \
5759
-DBUILD_TESTING=OFF \
5860
-DOPENSSL_NO_AFALGENG=ON \
5961
-DOPENSSL_ZLIB=ON \
@@ -188,7 +190,7 @@ function build() {
188190
-DOPENSSL_CMP=OFF \
189191
"
190192
if [[ "$TYPE" =~ ^(ios|tvos|xros|catos|watchos)$ ]]; then
191-
DEFINES="${DEFINES} -DOPENSSL_BUILD_APPS=OFF -DHAVE_FORK=0"
193+
DEFINES="${DEFINES} -DHAVE_FORK=0"
192194
fi
193195
rm -f CMakeCache.txt *.a *.o
194196
cmake .. \
@@ -346,9 +348,8 @@ function build() {
346348
ZLIB_LIBRARY="$LIBS_ROOT/zlib/lib/$TYPE/$PLATFORM/zlib.lib"
347349

348350
# Always disable ASM for VS static OF builds.
349-
# OPENSSL_ASM=ON on x64 (previous) re-enabled asm after global OFF and
350-
# fails without a complete NASM/MASM pipeline under openssl-cmake 4.x.
351-
# Arm64/arm64ec already forced OFF; keep one path for all VS arches.
351+
# The VS static build fails without a complete NASM/MASM pipeline under
352+
# openssl-cmake 4.x; keep one ASM-disabled path for every VS architecture.
352353
DEFINES="${DEFINES} -DOPENSSL_ASM=OFF -DOPENSSL_NO_ASM=ON"
353354

354355
mkdir -p "build_${TYPE}_${ARCH}"

0 commit comments

Comments
 (0)