view sources/control-images/lfs-bootstrap/mnt/build/zlib.sh @ 1275:a4cb2ed0a551

Move sources/native-builds to sources/control-images, so the naming is consistent.
author Rob Landley <rob@landley.net>
date Sun, 07 Nov 2010 15:55:26 -0600
parents sources/native-builds/lfs-bootstrap/mnt/build/zlib.sh@7a60afa1846c
children
line wrap: on
line source

#!/bin/sh

# zlib 1.2.5 accidentally shipped a generated file, which it then tries to
# overwrite in-place.  This doesn't work so well on a read only filesystem.

rm -f Makefile &&

# Fix another bug.

sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h &&

# Otherwise, standard build

./configure --prefix=/usr &&
make -j $CPUS || exit 1

if [ ! -z "$CHECK" ]
then
  make check || exit 1
fi

make install