aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-07-17 10:57:54 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-07-17 10:58:30 -0400
commit90764f2baece55ee596175ee6554401aee4651ab (patch)
tree62ff05edeac8d6d07b5e2097ea91e881d890bc0e /Makefile
parent558a6045e0441fd25cdb1dba6bea838a474f839d (diff)
avoid stripping rpath when linking haskell libs dynamically
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