From 36e650d1caeac91379ffe7f3c7de1e9a7c0eafd8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 27 Apr 2016 14:32:05 -0400 Subject: fix build with old ghc that lacks MIN_VERSION_GLASGOW_HASKELL macro --- Build/LinuxMkLibs.hs | 8 ++++++++ 1 file changed, 8 insertions(+) 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" -- cgit v1.2.3