bzip2/STAGE1-bzip2
Petr Šabata 267a1926a5 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/bzip2#79c2dddc27d31b50e01c3915ef3ceca80105cd18
2020-10-14 22:34:03 +02:00

28 lines
652 B
Plaintext

srpm bzip2
mcd $BUILDDIR/bzip2
rsync -av $SRC/bzip2-*/ ./
make $J \
CC=${TARGET}-gcc \
AR=${TARGET}-ar \
RANLIB=${TARGET}-ranlib \
PREFIX=/usr \
CFLAGS="$CFLAGS -fpic -fPIC" \
libbz2.a bzip2 bzip2recover
if [ "$SUFFIX" = "64" ]
then
ARGS="BITS=64"
fi
make $J $ARGS \
CC=${TARGET}-gcc \
AR=${TARGET}-ar \
RANLIB=${TARGET}-ranlib \
PREFIX=${ROOTFS}/usr \
install
# the installation makes symbols links with our host's paths
# in them, we need to redo those.
cd $ROOTFS/usr/bin
rm bzless; ln -s bzmore bzless
rm bzfgrep; ln -s bzgrep bzfgrep
rm bzcmp; ln -s bzdiff bzcmp
rm bzegrep; ln -s bzgrep bzegrep