aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3a9053688..5db1b627c 100644
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,10 @@ git-annex: Build/SysConfig.hs
ln -sf dist/build/git-annex/git-annex git-annex; \
fi
# Work around https://github.com/haskell/cabal/issues/3524
- @chrpath -d git-annex || echo "** unable to chrpath git-annex; it will be a little bit slower than necessary"
+ # when not linked dynamically to haskell libs
+ @if ! ldd git-annex | grep -q libHS; then \
+ chrpath -d git-annex || echo "** unable to chrpath git-annex; it will be a little bit slower than necessary"; \
+ fi
# These are not built normally.
git-union-merge.1: doc/git-union-merge.mdwn