Upgrade to boost-1.57.0
[hvlinux.git] / stage0 / hv-install-2
index 33a9447..7b7f32e 100755 (executable)
@@ -1,12 +1,13 @@
 #!/bin/bash
 
 source ~/.bashrc
-
 source ../functions/main
 
 init_log_file
 
-ipkg -m noac ${KERNEL}
+if [ x"${INSTALL_GLIBC}" == x"1" ]; then
+    ipkg -m noac ${KERNEL}
+fi
 
 case "${HVL_TARGET}" in
     x86*)
@@ -15,15 +16,13 @@ case "${HVL_TARGET}" in
         ;;
 esac
 
-CPPFLAGS=-fexceptions \
-    ipkg ${GMP} "\
+ipkg ${GMP} "\
     --enable-cxx \
     --disable-static"
 
 export LDFLAGS="-Wl,-rpath,/cross-tools/lib"
 
 ipkg ${MPFR} "\
-    --enable-shared \
     --disable-static \
     --with-gmp=/cross-tools"
 
@@ -32,8 +31,11 @@ ipkg ${MPC} "\
     --with-gmp=/cross-tools \
     --with-mpfr=/cross-tools"
 
+ipkg ${ISL} "\
+    --disable-static \
+    --with-gmp-prefix=/cross-tools"
+
 ipkg ${CLOOG} "\
-    --enable-shared \
     --disable-static \
     --with-bits=gmp \
     --with-gmp-prefix=/cross-tools"
@@ -42,7 +44,10 @@ LDFLAGS=""
 
 ipkg ${BINUTILS}
 ipkg -l "${GCC}-pass1" ${GCC}
-ipkg ${EGLIBC}
-ipkg -l "${GCC}-pass2" ${GCC}
+
+if [ x"${INSTALL_GLIBC}" == x"1" ]; then
+    ipkg ${GLIBC}
+    ipkg -l "${GCC}-pass2" ${GCC}
+fi
 
 exit $?