summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/BSDPAN/README
blob: 6ffab35b0366861dcf4ef26a41dc50c05f2baacc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$FreeBSD$

For importers of the future Perl versions.  BSDPAN operation depends on
the fact it is loaded before system Perl modules.  To achieve this, the
semi-documented (it is described as undocumented in Perl documentation)
define APPLLIB_EXP is used.  Run Perl configure as follows (with other
relevant arguments of course):

   sh Configure -Dccflags='-DAPPLLIB_EXP="/usr/libdata/perl/BSDPAN"'

Since FreeBSD uses its own Makefile to build Perl, it is necessary to
duplicate this as an extra CFLAG.  This resides currently in
gnu/usr.bin/perl/Makefile.inc:

   CFLAGS+=	'-DAPPLLIB_EXP="/usr/libdata/perl/BSDPAN"'

If APPLLIB_EXP ever gets removed from Perl, some other way of putting
/usr/libdata/perl/BSDPAN in the start of @INC must be devised.

-Anton <tobez@tobez.org>
OpenPOWER on IntegriCloud