aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-07-06 14:40:18 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-07-06 14:40:18 -0400
commit91d1ce73b3cb022174a460a030d96ce51a8e6a36 (patch)
tree077cf533ee6de41383a70abc8dec25b5e3591a09 /Makefile
parentc0ea968f9d7b03f88e87b0abf97e4997e936c97c (diff)
Remove unnecessary rpaths in the git-annex binary, but only when it's built using make, not cabal. This speeds up git-annex statup time by around 50%.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b75e9864f..3a9053688 100644
--- a/Makefile
+++ b/Makefile
@@ -29,6 +29,8 @@ git-annex: Build/SysConfig.hs
else \
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"
# These are not built normally.
git-union-merge.1: doc/git-union-merge.mdwn