33a7bf1c007eea14e79790bc93cd32d3dd5f113e
[p5sagit/p5-mst-13.2.git] / hints / netbsd.sh
1 # hints/netbsd.sh
2 # netbsd keeps  dynamic loading dl*() functions in /lib/crt0.o,
3 # so Configure doesn't find them (unless you abandon the nm scan).
4 case "$osvers" in
5 0.9*|0.8*)
6         usedl="$undef"
7         ;;
8 *)      d_dlopen=$define
9         d_dlerror=$define
10         cccdlflags="-DPIC -fpic $cccdlflags"
11         lddlflags="-Bforcearchive -Bshareable $lddlflags"
12         ;;
13 esac
14
15 # Avoid telldir prototype conflict in pp_sys.c  (NetBSD uses const DIR *)
16 # Configure should test for this.  Volunteers?
17 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'