diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-06-07 19:00:05 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-06-07 19:12:33 +0200 |
| commit | a2b14b5be4bf70650f6ec4a7a1ebab7c0a993c81 (patch) | |
| tree | a72c1fb13425f465405927270a1797005a2e699b /script/with-static.sh | |
| parent | 12a3a1e05c03fdc9767ef62e5ff9e0d677946525 (diff) | |
Tighten up the build
Build as release, and there is no need to install the library, we know
where the files are.
Diffstat (limited to 'script/with-static.sh')
| -rwxr-xr-x | script/with-static.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/script/with-static.sh b/script/with-static.sh index 643dcff..0caed5e 100755 --- a/script/with-static.sh +++ b/script/with-static.sh @@ -2,12 +2,10 @@ set -ex -export INSTALL_LOCATION=$PWD/vendor/install -export PKG_CONFIG_PATH=$INSTALL_LOCATION/lib/pkgconfig +export BUILD="$PWD/vendor/libgit2/build" +export PCFILE="$BUILD/libgit2.pc" -export PCFILE="$PWD/vendor/libgit2/libgit2.pc" - -export CGO_LDFLAGS="$PWD/vendor/libgit2/libgit2.a $(pkg-config --static --libs $PCFILE)" -export CGO_CFLAGS="$(pkg-config --static --cflags $PCFILE)" +export CGO_LDFLAGS="$BUILD/libgit2.a -L$BUILD $(pkg-config --static --libs $PCFILE)" +export CGO_CFLAGS="-I$PWD/vendor/libgit2/include" $@ |
