Permalink
Browse files

Added PATH for compiling

  • Loading branch information...
1 parent 91f4b69 commit 9c66a5d84ebc7eb04ff82fa32c1f3dddb95cf640 @yogsototh yogsototh committed Apr 13, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 bin/compile
View
13 bin/compile
@@ -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"

0 comments on commit 9c66a5d

Please sign in to comment.