Skip to content

Commit 06d171d

Browse files
committed
Weak-link against libssh2.
This allows access to the `ssh` transport if you have libssh2 installed (eg. using `brew`, so I'm only looking it `/usr/local/lib`). The libgit2 cmake script will detect it automatically, but since we're building static, it's our responsibility to have it.
1 parent 66f847a commit 06d171d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ObjectiveGitFramework.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,9 +1317,11 @@
13171317
GCC_PREFIX_HEADER = ObjectiveGitFramework_Prefix.pch;
13181318
INFOPLIST_FILE = Info.plist;
13191319
OTHER_LDFLAGS = (
1320+
"-L/usr/local/lib",
13201321
"-lgit2",
13211322
"-force_load",
13221323
libgit2.a,
1324+
"-weak-lssh2",
13231325
);
13241326
PRODUCT_NAME = ObjectiveGit;
13251327
WRAPPER_EXTENSION = framework;
@@ -1336,9 +1338,11 @@
13361338
GCC_PREFIX_HEADER = ObjectiveGitFramework_Prefix.pch;
13371339
INFOPLIST_FILE = Info.plist;
13381340
OTHER_LDFLAGS = (
1341+
"-L/usr/local/lib",
13391342
"-lgit2",
13401343
"-force_load",
13411344
libgit2.a,
1345+
"-weak-lssh2",
13421346
);
13431347
PRODUCT_NAME = ObjectiveGit;
13441348
WRAPPER_EXTENSION = framework;
@@ -1436,9 +1440,11 @@
14361440
GCC_PREFIX_HEADER = ObjectiveGitFramework_Prefix.pch;
14371441
INFOPLIST_FILE = Info.plist;
14381442
OTHER_LDFLAGS = (
1443+
"-L/usr/local/lib",
14391444
"-lgit2",
14401445
"-force_load",
14411446
libgit2.a,
1447+
"-weak-lssh2",
14421448
);
14431449
PRODUCT_NAME = ObjectiveGit;
14441450
WRAPPER_EXTENSION = framework;

0 commit comments

Comments
 (0)