Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit-binary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-07-06 21:08:09 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-07-06 21:08:09 +0300
commitba9f025efbcf2ed4afeccf8ae48f1d5b07b8ca3c (patch)
treee3ddec1c8afe787906c1621b101fdd18188b7f19
parentee8623366987ca3d79b35188625154d7009e8d2c (diff)
Make libgit2 builds on Mac fat binaries.
-rwxr-xr-xbuild.libgit2.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.libgit2.sh b/build.libgit2.sh
index 2816b4f..81feeba 100755
--- a/build.libgit2.sh
+++ b/build.libgit2.sh
@@ -55,7 +55,7 @@ if [ "$OS" == "Darwin" ]; then
cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DENABLE_ZLIB_COMPRESSION:BOOL=ON \
- -DCMAKE_OSX_ARCHITECTURES="i386" \
+ -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
-DCMAKE_SKIP_RPATH=TRUE \
..
cmake --build .
@@ -78,7 +78,7 @@ then
-DBUILD_CLAR:BOOL=OFF \
-DENABLE_TRACE=ON \
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
- -DCMAKE_OSX_ARCHITECTURES="i386" \
+ -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
-DCMAKE_SKIP_RPATH=TRUE \
-DLIBSSH2_FOUND=TRUE \
-DLIBSSH2_INCLUDE_DIRS="$CURDIR/external/libssh2/include" \
@@ -92,7 +92,6 @@ else
-DUSE_SSH=ON \
-DENABLE_TRACE=ON \
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
- -DCMAKE_OSX_ARCHITECTURES="i386" \
-DCMAKE_SKIP_RPATH=TRUE \
..
fi