view images/lfs-bootstrap/mnt/build/gmp.sh @ 24:6f975a65fe1d

Fixes for uClibc 0.9.33.1.
author Rob Landley <rob@landley.net>
date Thu, 19 Apr 2012 00:10:54 -0500
parents bcd2e358d57f
children
line wrap: on
line source

#!/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