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