[ fix ] loading of dylib on macOS Monterey (#2078)

This commit is contained in:
Christian Rasmussen 2021-11-02 11:19:59 +01:00 committed by GitHub
parent 1a8747541e
commit 44fc58013a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8317 additions and 7339 deletions

View File

@ -17,5 +17,6 @@ else
fi
export LD_LIBRARY_PATH="$DIR/idris2_app:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$DIR/idris2_app:$DYLD_LIBRARY_PATH"
${SCHEME} --script "$DIR/idris2_app/idris2-boot.so" "$@"

View File

@ -12,5 +12,6 @@ else
fi
export LD_LIBRARY_PATH="$DIR/idris2_app:$LD_LIBRARY_PATH"
export DYLD_LIBRARY_PATH="$DIR/idris2_app:$DYLD_LIBRARY_PATH"
"$DIR/idris2_app/idris2-boot" "$@"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -402,6 +402,7 @@ startChezPreamble = unlines
startChez : String -> String -> String
startChez appdir target = startChezPreamble ++ unlines
[ "export LD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$LD_LIBRARY_PATH\""
, "export DYLD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$DYLD_LIBRARY_PATH\""
, "export IDRIS2_INC_SRC=\"$DIR/" ++ appdir ++ "\""
, "\"$DIR/" ++ target ++ "\" \"$@\""
]

View File

@ -59,6 +59,7 @@ schFooter = "(collect 4)\n(blodwen-run-finalisers)\n"
startChez : String -> String -> String -> String
startChez chez appDirSh targetSh = Chez.startChezPreamble ++ unlines
[ "export LD_LIBRARY_PATH=\"$DIR/" ++ appDirSh ++ ":$LD_LIBRARY_PATH\""
, "export DYLD_LIBRARY_PATH=\"$DIR/" ++ appDirSh ++ ":$DYLD_LIBRARY_PATH\""
, "\"" ++ chez ++ "\" -q "
++ "--libdirs \"$DIR/" ++ appDirSh ++ "\" "
++ "--program \"$DIR/" ++ targetSh ++ "\" "

View File

@ -343,6 +343,7 @@ startRacket racket appdir target = unlines
, "fi"
, ""
, "export LD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$LD_LIBRARY_PATH\""
, "export DYLD_LIBRARY_PATH=\"$DIR/" ++ appdir ++ ":$DYLD_LIBRARY_PATH\""
, racket ++ "\"$DIR/" ++ target ++ "\" \"$@\""
]