aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-12-30 23:01:07 +0300
committerCem Keylan <cem@ckyln.com>2020-12-30 23:01:07 +0300
commitddf7f955a7ebb1d0e0fc3fa36e79c649d88864b6 (patch)
treeb729a568b37f502a025b99021b5f43afc6e04d95
parentf7f7491fc3e1e2e455b63ba65988141cba07f12b (diff)
downloadrepository-ddf7f955a7ebb1d0e0fc3fa36e79c649d88864b6.tar.gz
git: fix cross compilation
-rwxr-xr-xcore/git/build5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/git/build b/core/git/build
index a0228ee5..eb336bb3 100755
--- a/core/git/build
+++ b/core/git/build
@@ -2,6 +2,8 @@
sed -i '/^\#include.*openssl.*\.h/d' git-compat-util.h
+[ "$CPT_CROSS_TRIPLET" ] && CC=$CPT_CROSS_TRIPLET-cc
+
cat > config.mak <<EOF
NO_GETTEXT=YesPlease
NO_SVN_TESTS=YesPlease
@@ -18,8 +20,7 @@ EOF
export LDFLAGS="$LDFLAGS -static"
-./configure \
- --prefix=/usr \
+cpt-configure \
--with-curl \
ac_cv_snprintf_returns_bogus=no \
ac_cv_fread_reads_directories=yes