This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
This is my patch patch.1h for perl5.001.
[perl5.git] / hints / freebsd.sh
CommitLineData
5d94fbed 1# Original based on info from
a0d0e21e
LW
2# Carl M. Fongheiser <cmf@ins.infonet.net>
3# Date: Thu, 28 Jul 1994 19:17:05 -0500 (CDT)
4#
5# Additional 1.1.5 defines from
6# Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
7# Date: Wed, 28 Sep 1994 00:37:46 +0100 (MET)
8#
5d94fbed
AD
9# Additional 2.* defines from
10# Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
11# Date: Sat, 8 Apr 1995 20:53:41 +0200 (MET DST)
12#
13# FreeBSD has the dynamic loading dl*() functions in /usr/lib/crt0.o,
14# so Configure doesn't find them (unless you abandon the nm scan).
15#
16# The two flags "-fpic -DPIC" are used to indicate a
17# will-be-shared object. Configure will guess the -fpic, (and the
18# -DPIC is not used by perl proper) but the full define is included to
19# be consistent with the FreeBSD general shared libs building process.
20#
21# setreuid and friends are inherently broken in all versions of FreeBSD.
22#
23
a0d0e21e
LW
24case "$osvers" in
250.*|1.0*)
26 usedl="$undef"
27 ;;
5d94fbed 281.1*) d_dlopen="$define"
a0d0e21e 29 cccdlflags='-DPIC -fpic'
5d94fbed 30 lddlflags='-Bshareable $lddlflags'
a0d0e21e
LW
31 malloctype='void *'
32 groupstype='int'
33 d_setregid='undef'
34 d_setreuid='undef'
35 d_setrgid='undef'
36 d_setruid='undef'
5d94fbed
AD
37 ;;
38*)
39 d_dlopen="$define"
40 cccdlflags='-DPIC -fpic'
41 lddlflags='-Bshareable $lddlflags'
42 d_setregid='undef'
43 d_setreuid='undef'
44 d_setrgid='undef'
45 d_setruid='undef'
a0d0e21e
LW
46 ;;
47esac
48# Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *)
5d94fbed 49# Configure should test for this. Volunteers?
a0d0e21e 50pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'