2019-05-14 14:05:50 -06:00
|
|
|
#!/bin/sh -e
|
2019-05-13 08:32:56 -06:00
|
|
|
|
2019-08-30 12:54:18 -06:00
|
|
|
export BUILD_ZLIB=0
|
|
|
|
export BUILD_BZIP2=0
|
2019-09-06 09:32:21 -06:00
|
|
|
export LDFLAGS="$LDFLAGS -pthread"
|
|
|
|
export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
|
2019-05-10 09:16:22 -06:00
|
|
|
|
|
|
|
./Configure \
|
|
|
|
-des \
|
|
|
|
-Dprefix=/usr \
|
|
|
|
-Dvendorprefix=/usr \
|
2019-09-06 09:32:21 -06:00
|
|
|
-Dusevendorprefix \
|
2019-05-10 09:16:22 -06:00
|
|
|
-Duseshrplib \
|
2019-09-06 09:32:21 -06:00
|
|
|
-Dusesoname \
|
|
|
|
-Dusethreads \
|
|
|
|
-Dinc_version_list=none \
|
|
|
|
-Dd_sockaddr_in6=define \
|
|
|
|
-Dcccdlflags=-fPIC \
|
|
|
|
-Dccflags="$CFLAGS" \
|
|
|
|
-Dlddlflags="-shared $LDFLAGS" \
|
|
|
|
-Dldflags="$LDFLAGS" \
|
|
|
|
-Doptimize="-Wall $CFLAGS" \
|
|
|
|
-Dperl_static_inline="static __inline__" \
|
|
|
|
-Dd_static_inline
|
2019-05-10 09:16:22 -06:00
|
|
|
|
|
|
|
make
|
2019-05-13 06:37:14 -06:00
|
|
|
make DESTDIR="$1" install
|
2019-06-19 06:22:24 -06:00
|
|
|
|
2019-09-06 09:32:21 -06:00
|
|
|
# Remove all unneeded files.
|
|
|
|
find "$1" -name \*.pod -delete
|
2019-06-19 06:22:24 -06:00
|
|
|
find "$1" -name .packlist -delete
|
2019-09-06 09:32:21 -06:00
|
|
|
find "$1" -name README\* -delete
|
|
|
|
find "$1" -name TODO\* -delete
|
|
|
|
find "$1" -name Change\* -delete
|
|
|
|
find "$1" -name \*.bs -delete
|
|
|
|
find "$1" -name \*.0 -type f -delete
|