Merge pull request #709 from melted/unix_lib

Put the appdir first in LD_LIBRARY_PATH
This commit is contained in:
Niklas Larsson 2020-09-28 21:54:25 +02:00 committed by GitHub
commit 5bbbfaf225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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