@@ -255,7 +255,7 @@ gfPhaseOverrides = unlines
255255 , " sed -i \"s|numJobs (bf bi)++||\" ./Setup.hs"
256256 -- Parallel compilation fails. Disable it.
257257 , "'';"
258− , "preBuild = ''export LD_LIBRARY_PATH=`pwd`/dist/build:$LD_LIBRARY_PATH'';"
258+ , "preBuild = ''export LD_LIBRARY_PATH=`pwd`/dist/build''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH'';"
259259 -- The build step itself, after having built the library, needs to be able
260260 -- to find the library it just built in order to compile grammar files.
261261 ]