how-lix-os-pkgs/perl-static/default/conf.sh

35 lines
834 B
Bash
Executable File

#!/bin/sh
set -e
./Configure \
-des \
-Uusedl \
-Dprefix="/" \
-Dman1dir="/share/man/man1" \
-Dman3dir="/share/man/man3" \
-Accflags="$CFLAGS" \
-Acxxflags="$CXXFLAGS" \
-Acppflags="$CPPFLAGS" \
-Aldflags="$LDFLAGS"
## explanation
#
# perl is a beast with a unique configuration process.
#
# -des: use default answers for everything not set by a flag here.
#
# -Uusedl: don't use dynamic linking/loading. static linking only.
#
# -Dprefix: respect the "no /usr/local" policy.
#
# -Dman1dir -Dman3dir: install manual pages in these directories.
#
# -Accflags: set "ccflags," perl's equivalent of CFLAGS.
#
# -Acxxflags: set "cxxflags," perl's equivalent of CXXFLAGS.
#
# -Acppflags: set "cppflags," perl's equivalent of CPPFLAGS.
#
# -Aldflags: set "ldflags," perl's equivalent of LDFLAGS.