Commit | Line | Data |
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 |
4 | case "$osvers" in |
232e078e |
5 | 0.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 | ;; |
13 | esac |
232e078e |
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"' |