Put the appdir first in LD_LIBRARY_PATH

So that we prefer the local support lib before others in the path.
This commit is contained in:
Niklas Larsson 2020-09-28 21:01:59 +02:00
parent d105dd11a7
commit d5393b93bd

View File

@ -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 ++ "\" \"$@\""
]