mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
Leave $GUILE_LOAD_COMPILED_PATH unchanged when cross-compiling.
* meta/uninstalled-env.in: Don't define $GUILE_LOAD_COMPILED_PATH when cross-compiling.
This commit is contained in:
parent
a0a8dd6254
commit
adf8616fab
1 changed files with 19 additions and 14 deletions
|
@ -71,22 +71,27 @@ else
|
||||||
fi
|
fi
|
||||||
export GUILE_LOAD_PATH
|
export GUILE_LOAD_PATH
|
||||||
|
|
||||||
if [ x"$GUILE_LOAD_COMPILED_PATH" = x ]
|
# When cross-compiling, let $GUILE_FOR_BUILD use its own .go files since
|
||||||
|
# the ones that are being built may be incompatible.
|
||||||
|
if test "@cross_compiling@" = "no"
|
||||||
then
|
then
|
||||||
GUILE_LOAD_COMPILED_PATH="${top_builddir}/module:${top_builddir}/guile-readline:${top_builddir}"
|
if test "x$GUILE_LOAD_COMPILED_PATH" = "x"
|
||||||
else
|
then
|
||||||
for d in "/module" "/guile-readline" ""
|
GUILE_LOAD_COMPILED_PATH="${top_builddir}/module:${top_builddir}/guile-readline:${top_builddir}"
|
||||||
do
|
else
|
||||||
# This hair prevents double inclusion.
|
for d in "/module" "/guile-readline" ""
|
||||||
# The ":" prevents prefix aliasing.
|
do
|
||||||
case x"$GUILE_LOAD_COMPILED_PATH" in
|
# This hair prevents double inclusion.
|
||||||
x*${top_builddir}${d}:*) ;;
|
# The ":" prevents prefix aliasing.
|
||||||
x*${top_builddir}${d}) ;;
|
case x"$GUILE_LOAD_COMPILED_PATH" in
|
||||||
*) GUILE_LOAD_COMPILED_PATH="${top_builddir}${d}:$GUILE_LOAD_COMPILED_PATH" ;;
|
x*${top_builddir}${d}:*) ;;
|
||||||
esac
|
x*${top_builddir}${d}) ;;
|
||||||
done
|
*) GUILE_LOAD_COMPILED_PATH="${top_builddir}${d}:$GUILE_LOAD_COMPILED_PATH" ;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
export GUILE_LOAD_COMPILED_PATH
|
||||||
fi
|
fi
|
||||||
export GUILE_LOAD_COMPILED_PATH
|
|
||||||
|
|
||||||
# Don't look in installed dirs for guile modules
|
# Don't look in installed dirs for guile modules
|
||||||
if ( env | grep -v '^GUILE_SYSTEM_PATH=' > /dev/null ); then
|
if ( env | grep -v '^GUILE_SYSTEM_PATH=' > /dev/null ); then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue