diff sources/native-builds/lfs-bootstrap/mnt/build/gmp.sh @ 1269:7a60afa1846c

More tweaks to bootstrap-skeleton, implement the first half of lfs-bootstrap for Linux From Scratch 6.7 against the new infrastructure, and tweak gentoo build to stay current with bootstrap-skeleton changes. (Now more common infrastructure, and requires package-list file.)
author Rob Landley <rob@landley.net>
date Sun, 24 Oct 2010 04:17:15 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/native-builds/lfs-bootstrap/mnt/build/gmp.sh	Sun Oct 24 04:17:15 2010 -0500
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+# Doesn't work with uClibc++ yet.
+# [ ! -z "$(which c++)" ] && X="--enable-cxx"
+
+./configure --prefix=/usr $X --enable-mpbsd &&
+make -j $CPUS || exit 1
+
+if [ ! -z "$CHECK" ]
+then
+  make check 2>&1 | tee gmp-check-log
+  awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log
+fi
+
+make install || exit 1
+
+if [ ! -z "$DOCS" ]
+then
+  mkdir -p /usr/share/doc/gmp-5.0.1 &&
+  cp doc/isa_abi_headache doc/connfiguration doc/*.html \
+    /usr/share/doc/gmp-5.0.1
+fi