repo/extra/plzip/build

23 lines
534 B
Plaintext
Raw Normal View History

2020-05-07 15:18:10 +00:00
#!/bin/sh -e
# plzip is the only thing that will ever require
2020-05-17 07:39:05 +00:00
# this library. Let's simply build it and statically
2020-05-07 15:18:10 +00:00
# compile plzip.
(cd lzlib; ./configure; make)
# Fix build in libc++ environment.
2021-07-18 03:52:20 +00:00
case $("$CC" -print-file-name=libc++.a) in */*)
CXXFLAGS="$CXXFLAGS -lunwind -lc++abi"
esac
2020-05-07 15:18:10 +00:00
./configure \
--prefix=/usr \
CXXFLAGS="$CXXFLAGS -static -L$PWD/lzlib -I$PWD/lzlib"
make
2021-07-18 03:06:20 +00:00
make install
2020-05-07 15:18:10 +00:00
# Create the symlink for compatibility. We're using
# a multi-threaded implementation of lzip.
ln -s plzip "$1/usr/bin/lzip"