Fix bug preventing clean unmounting of rootfs
[hvlinux.git] / stage0 / hv-install-2
index 6bcd4d2..0be337f 100755 (executable)
@@ -2,10 +2,7 @@
 
 source ~/.bashrc
 
-# Reading system configuration informations, functions and package versions.
-source ../sysinfos
-source ../functions
-source ../packages-list
+source ../functions/main
 
 init_log_file
 
@@ -19,27 +16,34 @@ case "${HVL_TARGET}" in
 esac
 
 CPPFLAGS=-fexceptions \
-    ipkg ${GMP} "--enable-cxx"
+    ipkg ${GMP} "\
+    --enable-cxx \
+    --disable-static"
 
 export LDFLAGS="-Wl,-rpath,/cross-tools/lib"
 
 ipkg ${MPFR} "\
     --enable-shared \
+    --disable-static \
     --with-gmp=/cross-tools"
+
 ipkg ${MPC} "\
+    --disable-static \
     --with-gmp=/cross-tools \
     --with-mpfr=/cross-tools"
-ipkg ${PPL} "\
+
+CPPFLAGS="-I/cross-tools/include" \
+    ipkg ${PPL} "\
     --enable-shared \
+    --disable-static \
     --enable-interfaces=c,cxx \
     --disable-optimization \
-    --with-libgmp-prefix=/cross-tools \
-    --with-libgmpxx-prefix=/cross-tools"
-ipkg ${CLOOG_PPL} "\
+    --with-gmp=/cross-tools"
+ipkg ${CLOOG} "\
     --enable-shared \
+    --disable-static \
     --with-bits=gmp \
-    --with-gmp=/cross-tools \
-    --with-ppl=/cross-tools"
+    --with-gmp-prefix=/cross-tools"
 
 LDFLAGS=""