diff options
author | Brandon Ording <bording@gmail.com> | 2015-02-24 08:28:04 +0300 |
---|---|---|
committer | Brandon Ording <bording@gmail.com> | 2015-05-16 20:04:34 +0300 |
commit | c1312387b8471a47d975a11e074c24bc78dc2fb6 (patch) | |
tree | 4d12bfdca4b4b21ea085c5067a416eb259a1cbeb /build.libgit2sharp.sh | |
parent | 98e6e34639721eca7abfcf896a776b053e0d39e5 (diff) |
Use NativeBinaries package for libgit2 dependency
closes #974, closes #984
Diffstat (limited to 'build.libgit2sharp.sh')
-rwxr-xr-x | build.libgit2sharp.sh | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/build.libgit2sharp.sh b/build.libgit2sharp.sh index d650afd2..d2afe9bf 100755 --- a/build.libgit2sharp.sh +++ b/build.libgit2sharp.sh @@ -1,32 +1,12 @@ #!/bin/bash -LIBGIT2SHA=`cat ./LibGit2Sharp/libgit2_hash.txt` -SHORTSHA=${LIBGIT2SHA:0:7} EXTRADEFINE="$1" -rm -rf libgit2/build -mkdir libgit2/build -pushd libgit2/build -export _BINPATH=`pwd` - -cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \ - -DBUILD_CLAR:BOOL=OFF \ - -DUSE_SSH=OFF \ - -DENABLE_TRACE=ON \ - -DLIBGIT2_FILENAME=git2-$SHORTSHA \ - -DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \ - .. -cmake --build . - -export LD_LIBRARY_PATH=$_BINPATH:$LD_LIBRARY_PATH -export DYLD_LIBRARY_PATH=$_BINPATH:$DYLD_LIBRARY_PATH - -popd - -export MONO_OPTIONS=--debug - -echo $DYLD_LIBRARY_PATH -echo $LD_LIBRARY_PATH +# Setting LD_LIBRARY_PATH to the current working directory is needed to run +# the tests successfully in linux. Without this, mono can't find libgit when +# the libgit2sharp assembly has been shadow copied. OS X includes the current +# working directory in its library search path, so it works without this value. +export LD_LIBRARY_PATH=. # Required for NuGet package restore to run. mozroots --import --sync |