summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-04-27 14:32:05 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-04-27 14:32:05 -0400
commit36e650d1caeac91379ffe7f3c7de1e9a7c0eafd8 (patch)
tree7d84777e7eea0ca88fb59d7c5dbff9268f9bcf46 /Build
parentb8f2cc638a42aac9012484803090e75256113a01 (diff)
fix build with old ghc that lacks MIN_VERSION_GLASGOW_HASKELL macro
Diffstat (limited to 'Build')
-rw-r--r--Build/LinuxMkLibs.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Build/LinuxMkLibs.hs b/Build/LinuxMkLibs.hs
index 0e54672f9..e33538c4d 100644
--- a/Build/LinuxMkLibs.hs
+++ b/Build/LinuxMkLibs.hs
@@ -74,7 +74,15 @@ installLinkerShim top linker exe = do
[ "#!/bin/sh"
, "GIT_ANNEX_PROGRAMPATH=\"$0\""
, "export GIT_ANNEX_PROGRAMPATH"
+#ifdef MIN_VERSION_GLASGOW_HASKELL
#if ! MIN_VERSION_GLASGOW_HASKELL(7,10,0,0)
+#define NEED_LOCPATH_WORKAROUND
+#endif
+#else
+#define NEED_LOCPATH_WORKAROUND
+#endif
+#ifdef NEED_LOCPATH_WORKAROUND
+#warning enabling LOCPATH workaround for old ghc
-- workaround for https://ghc.haskell.org/trac/ghc/ticket/7695
, "LOCPATH=/dev/null"
, "export LOCPATH"