avoid stripping rpath when linking haskell libs dynamically

This commit is contained in:
Joey Hess 2016-07-17 10:57:54 -04:00
parent d04f2f6437
commit c04d9d6a01
Failed to extract signature

View file

@ -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