2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-25 00:30:06 -07:00
repo/core/perl/build

44 lines
1.0 KiB
Plaintext
Raw Normal View History

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" \
2019-10-08 12:51:31 -06:00
-Dcc="${CC:-gcc}" \
-Dar="${AR:-ar}" \
-Dnm="${NM:-nm}" \
-Dranlib="${RANLIB:-ranlib}" \
2019-09-06 09:32:21 -06:00
-Dperl_static_inline="static __inline__" \
-Dd_static_inline
2019-05-10 09:16:22 -06:00
make
make DESTDIR="$1" install
2019-06-19 06:22:24 -06:00
2019-09-06 09:32:21 -06:00
# Remove all unneeded files.
2019-09-16 04:32:32 -06:00
find "$1" -name \*.pod -delete
find "$1" -name .packlist -delete
find "$1" -name README\* -delete
find "$1" -name TODO\* -delete
find "$1" -name Change\* -delete
find "$1" -name \*.bs -delete
2019-09-06 09:32:21 -06:00
find "$1" -name \*.0 -type f -delete
2019-09-08 07:13:59 -06:00
# Fix permissions.
find "$1/usr/lib" -type f -exec chmod 644 {} \;