diff options
Diffstat (limited to 'hints/netbsd.sh')
-rw-r--r-- | hints/netbsd.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/hints/netbsd.sh b/hints/netbsd.sh index f5f5a74f93..33a7bf1c00 100644 --- a/hints/netbsd.sh +++ b/hints/netbsd.sh @@ -1,10 +1,17 @@ # hints/netbsd.sh +# netbsd keeps dynamic loading dl*() functions in /lib/crt0.o, +# so Configure doesn't find them (unless you abandon the nm scan). case "$osvers" in -0.9|0.8) +0.9*|0.8*) usedl="$undef" ;; -*) d_dlopen="$define" - cccdlflags='-DPIC -fpic' - lddlflags='-Bforcearchive -Bshareable' +*) d_dlopen=$define + d_dlerror=$define + cccdlflags="-DPIC -fpic $cccdlflags" + lddlflags="-Bforcearchive -Bshareable $lddlflags" ;; esac + +# Avoid telldir prototype conflict in pp_sys.c (NetBSD uses const DIR *) +# Configure should test for this. Volunteers? +pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' |