view images/lfs-bootstrap/mnt/build/zlib.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 84b321099814
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 zconf.h &&

# 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