This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
This is my patch patch.1n for perl5.001.
[perl5.git] / hints / netbsd.sh
CommitLineData
a0d0e21e 1# hints/netbsd.sh
5d94fbed 2# netbsd keeps dynamic loading dl*() functions in /usr/lib/crt0.o,
232e078e 3# so Configure doesn't find them (unless you abandon the nm scan).
a0d0e21e 4case "$osvers" in
232e078e 50.9*|0.8*)
a0d0e21e
LW
6 usedl="$undef"
7 ;;
232e078e
AD
8*) d_dlopen=$define
9 d_dlerror=$define
10 cccdlflags="-DPIC -fpic $cccdlflags"
11 lddlflags="-Bforcearchive -Bshareable $lddlflags"
a0d0e21e
LW
12 ;;
13esac
232e078e
AD
14
15# Avoid telldir prototype conflict in pp_sys.c (NetBSD uses const DIR *)
16# Configure should test for this. Volunteers?
17pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'