2020-04-24 23:36:52 +00:00
|
|
|
addGuileLibPath () {
|
2021-12-06 16:07:01 +00:00
|
|
|
if test -d "$1/share/guile/site/2.2"; then
|
2023-08-22 20:05:09 +00:00
|
|
|
addToSearchPath GUILE_LOAD_PATH "$1/share/guile/site/2.2"
|
|
|
|
addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/share/guile/site/2.2"
|
2021-12-06 16:07:01 +00:00
|
|
|
elif test -d "$1/share/guile/site"; then
|
2023-08-22 20:05:09 +00:00
|
|
|
addToSearchPath GUILE_LOAD_PATH "$1/share/guile/site"
|
|
|
|
addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/share/guile/site"
|
2020-04-24 23:36:52 +00:00
|
|
|
fi
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
if test -d "$1/lib/guile/2.2/ccache"; then
|
2023-08-22 20:05:09 +00:00
|
|
|
addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/lib/guile/2.2/ccache"
|
2020-12-25 13:55:36 +00:00
|
|
|
fi
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
if test -d "$1/lib/guile/2.2/site-ccache"; then
|
2023-08-22 20:05:09 +00:00
|
|
|
addToSearchPath GUILE_LOAD_COMPILED_PATH "$1/lib/guile/2.2/site-ccache"
|
2020-12-25 13:55:36 +00:00
|
|
|
fi
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
addEnvHooks "$hostOffset" addGuileLibPath
|