diff --git a/src/Compiler/Scheme/Chez.idr b/src/Compiler/Scheme/Chez.idr index a2c19793e..0908aaef2 100644 --- a/src/Compiler/Scheme/Chez.idr +++ b/src/Compiler/Scheme/Chez.idr @@ -347,7 +347,7 @@ startChez appdir target = unlines , " ;; " , "esac " , "" - , "export LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:`dirname \"$DIR\"`/\"" ++ appdir ++ "\"\"" + , "export LD_LIBRARY_PATH=\"`dirname \"$DIR\"`/\"" ++ appdir ++ "\":$LD_LIBRARY_PATH\"" , "\"`dirname \"$DIR\"`\"/\"" ++ target ++ "\" \"$@\"" ]