repo/extra/perl/build

50 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-05-14 20:05:50 +00:00
#!/bin/sh -e
2019-05-13 14:32:56 +00:00
2019-08-30 18:54:18 +00:00
export BUILD_ZLIB=0
export BUILD_BZIP2=0
2019-09-06 15:32:21 +00:00
export LDFLAGS="$LDFLAGS -pthread"
export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
2019-05-10 15:16:22 +00:00
./Configure \
-des \
-Dprefix=/usr \
-Dvendorprefix=/usr \
2019-09-06 15:32:21 +00:00
-Dusevendorprefix \
2019-05-10 15:16:22 +00:00
-Duseshrplib \
2019-09-06 15:32:21 +00:00
-Dusesoname \
-Dusethreads \
-Dinc_version_list=none \
-Dd_sockaddr_in6=define \
-Dcccdlflags=-fPIC \
-Dccflags="$CFLAGS" \
-Dlddlflags="-shared $LDFLAGS" \
-Dldflags="$LDFLAGS" \
-Doptimize="-Wall $CFLAGS" \
2021-07-18 03:05:25 +00:00
-Dcc="$CC" \
-Dar="$AR" \
-Dnm="$NM" \
-Dranlib="$RANLIB" \
2021-07-12 08:21:25 +00:00
-Dman1dir=/usr/share/man/man1 \
-Dman3dir=/usr/share/man/man3 \
-Dinstallman1dir=/usr/share/man/man1 \
-Dinstallman3dir=/usr/share/man/man3 \
-Dman1ext=1 \
-Dman3ext=3pm \
2020-02-12 06:51:48 +00:00
-Dperl_static_inline="static __inline__" \
2019-09-06 15:32:21 +00:00
-Dd_static_inline
2019-05-10 15:16:22 +00:00
make
2021-07-18 03:05:25 +00:00
make install
2019-06-19 12:22:24 +00:00
2019-09-06 15:32:21 +00:00
# Remove all unneeded files.
2020-03-27 09:51:24 +00:00
find "$1" -name \*.pod -exec rm -f {} +
find "$1" -name .packlist -exec rm -f {} +
find "$1" -name README\* -exec rm -f {} +
find "$1" -name TODO\* -exec rm -f {} +
find "$1" -name Change\* -exec rm -f {} +
find "$1" -name \*.bs -exec rm -f {} +
find "$1" -name \*.0 -type f -exec rm -f {} +
2019-09-08 13:13:59 +00:00
# Fix permissions.
find "$1/usr/lib" -type f -exec chmod 644 {} \;