summaryrefslogtreecommitdiffstats
path: root/src/libgit2.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgit2.mk')
-rw-r--r--src/libgit2.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libgit2.mk b/src/libgit2.mk
index cad3941..3467f38 100644
--- a/src/libgit2.mk
+++ b/src/libgit2.mk
@@ -12,10 +12,8 @@ $(PKG)_DEPS := gcc libssh2
define $(PKG)_BUILD
mkdir '$(1).build'
- cd '$(1).build' && cmake \
- -DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
+ cd '$(1).build' && '$(TARGET)-cmake' \
-DDLLTOOL='$(PREFIX)/bin/$(TARGET)-dlltool' \
- -DBUILD_SHARED_LIBS=$(if $(BUILD_STATIC),OFF,ON) \
'$(1)'
$(MAKE) -C '$(1).build' -j '$(JOBS)' VERBOSE=1 || $(MAKE) -C '$(1).build' -j 1 VERBOSE=1
$(MAKE) -C '$(1).build' -j 1 install VERBOSE=1