| git.druid.rocks | index | druid520 | ports | ports/ | compression/ | bzip2/ | add.sh |
ports/compression/bzip2/add.sh
set -e
git clone https://sourceware.org/git/bzip2.git
cd bzip2
# -fPIC: without it, libbz2.a can't be linked into any shared object that
# needs it (e.g. python's _bz2 module) -- "relocation ... can not be used
# when making a shared object" at link time otherwise.
make CFLAGS="-fPIC $CFLAGS" PREFIX=$MP_PREFIX
make install PREFIX=$MP_PREFIX
make clean || true