Added PATH for compiling

This commit is contained in:
Yann Esposito (Yogsototh) 2012-04-13 14:51:10 +02:00
parent 91f4b69bad
commit 9c66a5d84e

View file

@ -39,11 +39,17 @@ fi
if [ -f "$bsdir.ghc.compiled" ]; then
loginfo "already compiled GHC bootstrap version ${ghcver}";
else
$(configureMakeInstall $bsdir/ghc-$ghcver $BUILD_DIR/bootstrap/ghc-$ghcver) && \
ghcdir="$bsdir/ghc-$ghcver"
ghcprefix="$BUILD_DIR/bootstrap/ghc-$ghcver"
$(configureMakeInstall $ghcdir $ghcprefix) && \
touch $bsdir.ghc.compiled;
fi
# GHC is compiled
export PATH="$ghcprefix/bin:$PATH"
export LIBRARY_PATH="$LIBRARY_PATH:$ghcprefix/lib"
export C_INCLUDE_PATH="$C_INCLUDE_PATH:$ghcprefix/include"
if [ -f "$bsdir.platform.downloaded" ]; then
loginfo "already downloaded GHC bootstrap version ${platformver}";
else
@ -56,7 +62,10 @@ fi
if [ -f "$bsdir.platform.compiled" ]; then
loginfo "already compiled GHC bootstrap version ${platformver}";
else
$(configureMakeInstall $bsdir/haskell-platform-$platformver $BUILD_DIR/bootstrap/haskell-platform-$platformver) && \
platformdir="$bsdir/haskell-platform-$platformver"
platformprefix="$BUILD_DIR/bootstrap/haskell-platform-$platformver"
$(configureMakeInstall $platformdir $platformprefix) && \
touch $bsdir.platform.compiled;
fi
# Haskell platform is compiled is compiled
export PATH="$platformprefix/bin:$PATH"