Skip to content

Commit 6a02c93

Browse files
author
Andras Fekete
committed
Fixed build for macosx
1 parent e188ee5 commit 6a02c93

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
# Installed dependencies
5656
/openssl*
5757
/wolfssl*
58+
/artifacts
5859

5960
IDE/Android/android-ndk-r26b/
6061
IDE/Android/openssl-source/

IDE/XCODE/build-wolfprovider-framework.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ build() { # <ARCH=arm64|x86_64> <TYPE=iphonesimulator|iphoneos|macosx|watchos|wa
6868
./configure -prefix=${OUTDIR}/wolfprov-${TYPE}-${ARCH} ${CONF_OPTS} --host=${HOST} \
6969
--with-openssl=${WOLFPROV_DIR}/openssl-source/artifacts/openssl-install-${TYPE}-${ARCH} \
7070
--with-wolfssl=${WOLFPROV_DIR}/wolfssl-source/artifacts/wolfssl-install-${TYPE}-${ARCH} \
71-
CFLAGS="${CFLAGS_COMMON} -arch ${ARCH} -isysroot ${SDK_ROOT}"
71+
CFLAGS="${CFLAGS_COMMON} -arch ${ARCH} -isysroot ${SDK_ROOT}" \
72+
LDFLAGS="-framework CoreFoundation -framework Security"
7273
make -j
7374
make install
7475

@@ -77,7 +78,7 @@ build() { # <ARCH=arm64|x86_64> <TYPE=iphonesimulator|iphoneos|macosx|watchos|wa
7778
}
7879

7980
XCFRAMEWORKS=
80-
for type in iphonesimulator ; do
81+
for type in iphonesimulator macosx ; do
8182
build arm64 ${type}
8283
build x86_64 ${type}
8384

0 commit comments

Comments
 (0)