5 export LDFLAGS="$LDFLAGS -pthread"
6 export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
16 -Dinc_version_list=none \
17 -Dd_sockaddr_in6=define \
20 -Dlddlflags="-shared $LDFLAGS" \
21 -Dldflags="$LDFLAGS" \
22 -Doptimize="-Wall $CFLAGS" \
26 -Dranlib="${RANLIB:-ranlib}" \
27 -Dperl_static_inline="static __inline__" \
31 make DESTDIR="$1" install
33 # Remove all unneeded files.
34 find "$1" -name \*.pod -exec rm -f {} +
35 find "$1" -name .packlist -exec rm -f {} +
36 find "$1" -name README\* -exec rm -f {} +
37 find "$1" -name TODO\* -exec rm -f {} +
38 find "$1" -name Change\* -exec rm -f {} +
39 find "$1" -name \*.bs -exec rm -f {} +
40 find "$1" -name \*.0 -type f -exec rm -f {} +
43 find "$1/usr/lib" -type f -exec chmod 644 {} \;