Skip to content

Commit 237db4e

Browse files
committed
Add support for bitcode
1 parent e002197 commit 237db4e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build_openssl_dist.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function build_for ()
2020

2121
export CROSS_TOP="${!CROSS_TOP_ENV}"
2222
export CROSS_SDK="${!CROSS_SDK_ENV}"
23-
./Configure $PLATFORM no-asm no-ssl3 no-comp no-hw no-engine --prefix=${TMP_DIR}/${ARCH} || exit 1
23+
./Configure $PLATFORM "-arch $ARCH -fembed-bitcode" no-asm no-ssl3 no-comp no-hw no-engine --prefix=${TMP_DIR}/${ARCH} || exit 1
2424
# problem of concurrent build; make -j8
2525
make && make install_sw || exit 2
2626
unset CROSS_TOP
@@ -32,9 +32,9 @@ function pack_for ()
3232
LIBNAME=$1
3333
mkdir -p ${TMP_DIR}/lib/
3434
${DEVROOT}/usr/bin/lipo \
35-
-arch x86_64 ${TMP_DIR}/x86_64/lib/lib${LIBNAME}.a \
36-
-arch armv7s ${TMP_DIR}/armv7s/lib/lib${LIBNAME}.a \
37-
-arch arm64 ${TMP_DIR}/arm64/lib/lib${LIBNAME}.a \
35+
${TMP_DIR}/x86_64/lib/lib${LIBNAME}.a \
36+
${TMP_DIR}/armv7s/lib/lib${LIBNAME}.a \
37+
${TMP_DIR}/arm64/lib/lib${LIBNAME}.a \
3838
-output ${TMP_DIR}/lib/lib${LIBNAME}.a -create
3939
}
4040

0 commit comments

Comments
 (0)