From 90764f2baece55ee596175ee6554401aee4651ab Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 17 Jul 2016 10:57:54 -0400 Subject: avoid stripping rpath when linking haskell libs dynamically --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3