This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add descriptions for $^E and $^O, and squash a typo.
[perl5.git] / hints / netbsd.sh
CommitLineData
a0d0e21e 1# hints/netbsd.sh
4633a7c4
LW
2#
3# talk to mrg@eterna.com.au if you want to change this file.
4#
5# netbsd keeps dynamic loading dl*() functions in /usr/lib/crt0.o,
232e078e 6# so Configure doesn't find them (unless you abandon the nm scan).
4633a7c4
LW
7# this should be *just* 0.9 below as netbsd 0.9a was the first to
8# introduce shared libraries.
a0d0e21e 9case "$osvers" in
4633a7c4 100.9|0.8*)
a0d0e21e
LW
11 usedl="$undef"
12 ;;
232e078e
AD
13*) d_dlopen=$define
14 d_dlerror=$define
4633a7c4
LW
15# we use -fPIC here because -fpic is *NOT* enough for some of the
16# extensions like Tk on some netbsd platforms (the sparc is one)
17 cccdlflags="-DPIC -fPIC $cccdlflags"
232e078e 18 lddlflags="-Bforcearchive -Bshareable $lddlflags"
4633a7c4
LW
19# netbsd has these but they don't really work as advertised. if they
20# are defined, then there isn't a way to make perl call setuid() or
21# setgid(). if they aren't, then ($<, $>) = ($u, $u); will work (same
22# for $(/$)). this is because you can not change the real userid of
23# a process under 4.4BSD.
24 d_setregid="$undef"
25 d_setreuid="$undef"
26 d_setrgid="$undef"
27 d_setruid="$undef"
a0d0e21e
LW
28 ;;
29esac
232e078e
AD
30
31# Avoid telldir prototype conflict in pp_sys.c (NetBSD uses const DIR *)
32# Configure should test for this. Volunteers?
33pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
4633a7c4
LW
34
35case "$archname" in
36'')
37 archname=`uname -m`-${osname}
38 ;;
39esac