remove static git support files
This commit is contained in:
parent
e8da5affe7
commit
43f6a75066
|
@ -1,3 +0,0 @@
|
||||||
[submodule "vendor/libgit2"]
|
|
||||||
path = vendor/libgit2
|
|
||||||
url = https://github.com/libgit2/libgit2
|
|
11
Makefile
11
Makefile
|
@ -1,11 +1,8 @@
|
||||||
default: test
|
default: test
|
||||||
|
|
||||||
build-libgit2:
|
test:
|
||||||
./script/build-libgit2-static.sh
|
|
||||||
|
|
||||||
test: build-libgit2
|
|
||||||
go run script/check-MakeGitError-thread-lock.go
|
go run script/check-MakeGitError-thread-lock.go
|
||||||
./script/with-static.sh go test ./...
|
go test ./...
|
||||||
|
|
||||||
install: build-libgit2
|
install:
|
||||||
./script/with-static.sh go install ./...
|
go install ./...
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
VENDORED_PATH=vendor/libgit2
|
|
||||||
|
|
||||||
cd $VENDORED_PATH &&
|
|
||||||
mkdir -p install/lib &&
|
|
||||||
mkdir -p build &&
|
|
||||||
cd build &&
|
|
||||||
cmake -DTHREADSAFE=ON \
|
|
||||||
-DBUILD_CLAR=OFF \
|
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
|
||||||
-DCMAKE_C_FLAGS=-fPIC \
|
|
||||||
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=../install \
|
|
||||||
.. &&
|
|
||||||
|
|
||||||
cmake --build .
|
|
|
@ -1,12 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
export BUILD="$PWD/vendor/libgit2/build"
|
|
||||||
export PCFILE="$BUILD/libgit2.pc"
|
|
||||||
|
|
||||||
FLAGS=$(pkg-config --static --libs $PCFILE) || exit 1
|
|
||||||
export CGO_LDFLAGS="$BUILD/libgit2.a -L$BUILD ${FLAGS}"
|
|
||||||
export CGO_CFLAGS="-I$PWD/vendor/libgit2/include"
|
|
||||||
|
|
||||||
$@
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 04bdd97f2b63793a8720fd19007911e946ba3c55
|
|
Loading…
Reference in New Issue