2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 07:40:11 -07:00
repo/core/perl/build
2019-09-06 18:32:21 +03:00

37 lines
869 B
Bash
Executable File

#!/bin/sh -e
export BUILD_ZLIB=0
export BUILD_BZIP2=0
export LDFLAGS="$LDFLAGS -pthread"
export CFLAGS="$CFLAGS -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
./Configure \
-des \
-Dprefix=/usr \
-Dvendorprefix=/usr \
-Dusevendorprefix \
-Duseshrplib \
-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
make
make DESTDIR="$1" install
# Remove all unneeded files.
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
find "$1" -name \*.0 -type f -delete