perl5.001 patch.1c
[p5sagit/p5-mst-13.2.git] / hints / netbsd.sh
CommitLineData
a0d0e21e 1# hints/netbsd.sh
232e078e 2# netbsd keeps dynamic loading dl*() functions in /lib/crt0.o,
3# so Configure doesn't find them (unless you abandon the nm scan).
a0d0e21e 4case "$osvers" in
232e078e 50.9*|0.8*)
a0d0e21e 6 usedl="$undef"
7 ;;
232e078e 8*) d_dlopen=$define
9 d_dlerror=$define
10 cccdlflags="-DPIC -fpic $cccdlflags"
11 lddlflags="-Bforcearchive -Bshareable $lddlflags"
a0d0e21e 12 ;;
13esac
232e078e 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"'