Skip to content

Commit 443abfe

Browse files
pks-ttiennou
authored andcommitted
script: force static libraries dependencies for iOS
1 parent 0314937 commit 443abfe

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

script/pkg-config-static

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
pkg-config --static "$@"

script/update_libgit2_ios

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ function build_libgit2 ()
2929
# LOL Cmake
3030
SYS_ROOT="-DCMAKE_OSX_SYSROOT=${SDKROOT}"
3131

32+
# We only want to discover our static library
33+
export PKG_CONFIG="${SCRIPT_DIR}"/pkg-config-static
34+
3235
# Limit pkg-config to what we're currently expecting it to use
3336
# PKG_CONFIG_PATH="${INSTALL_PATH}/lib/pkgconfig/"
3437
# LDFLAGS="-L $(xcrun --sdk iphoneos --show-sdk-path)/usr/lib"

0 commit comments

Comments
 (0)