view images/lfs-bootstrap/mnt/build/bzip2.sh @ 0:bcd2e358d57f

Start by copying the existing control image building infrastructure from Aboriginal Linux, and shuffling the layout around a bit.
author Rob Landley <rob@landley.net>
date Sun, 03 Jul 2011 17:23:26 -0500
parents
children
line wrap: on
line source

#!/bin/sh

# Use relative paths when installing symlinks, not absolute paths.
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile &&

# The extra song and dance is to install the shared library, and
# make the bzip2 binary use it.

make -f Makefile-libbz2_so &&
make clean &&
make &&
make PREFIX=/usr install &&
cp bzip2-shared /bin/bzip2 &&
cp -a libbz2.so* /lib