Last active
December 12, 2020 19:20
-
-
Save jeroen/4f13ff48596b449283ca98af7b95601d to your computer and use it in GitHub Desktop.
Building libgit2 on Solaris 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies | |
sudo pkgutil -i cmake libssh2_dev libssl_dev | |
# Download latest release | |
cd ~/Desktop | |
curl -OL https://github.com/libgit2/libgit2/releases/download/v1.1.0/libgit2-1.1.0.tar.gz | |
gtar xzf libgit2-1.1.0.tar.gz | |
cd libgit2-1.1.0 | |
# Patch to use C99 instead of C90 | |
gsed -i.bak 's/90/99/g' src/CMakeLists.txt | |
# Build | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/csw -DBUILD_CLAR=NO -DBUILD_EXAMPLES=NO | |
make | |
# Install | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment