3 # talk to packages@netbsd.org if you want to change this file.
5 # netbsd keeps dynamic loading dl*() functions in /usr/lib/crt0.o,
6 # so Configure doesn't find them (unless you abandon the nm scan).
7 # this should be *just* 0.9 below as netbsd 0.9a was the first to
8 # introduce shared libraries.
12 archname=`uname -m`-${osname}
21 if [ -f /usr/libexec/ld.elf_so ]; then
24 # Include the whole libgcc.a, required for Xerces-P, which
25 # needs __eh_alloc, __pure_virtual, and others.
26 # XXX This should be obsoleted by gcc-3.0.
27 ccdlflags="-Wl,-whole-archive -lgcc -Wl,-no-whole-archive \
28 -Wl,-E -Wl,-R${PREFIX}/lib $ccdlflags"
29 cccdlflags="-DPIC -fPIC $cccdlflags"
30 lddlflags="--whole-archive -shared $lddlflags"
31 elif [ "`uname -m`" = "pmax" ]; then
32 # NetBSD 1.3 and 1.3.1 on pmax shipped an `old' ld.so, which will not work.
38 elif [ -f /usr/libexec/ld.so ]; then
41 ccdlflags="-Wl,-R${PREFIX}/lib $ccdlflags"
42 # we use -fPIC here because -fpic is *NOT* enough for some of the
43 # extensions like Tk on some netbsd platforms (the sparc is one)
44 cccdlflags="-DPIC -fPIC $cccdlflags"
45 lddlflags="-Bshareable $lddlflags"
52 # netbsd had these but they don't really work as advertised, in the
53 # versions listed below. if they are defined, then there isn't a
54 # way to make perl call setuid() or setgid(). if they aren't, then
55 # ($<, $>) = ($u, $u); will work (same for $(/$)). this is because
56 # you can not change the real userid of a process under 4.4BSD.
57 # netbsd fixed this in 1.3.2.
59 0.9*|1.[012]*|1.3|1.3.1)
65 # These are obsolete in any netbsd.
69 # there's no problem with vfork.
72 # Using perl's malloc leads to trouble on some toolchain versions.
75 # Pre-empt the /usr/bin/perl question of installperl.
76 installusrbinperl="$undef"
78 # This is there but in machine/ieeefp_h.
81 # Recognize the NetBSD packages collection.
83 test -d /usr/pkg/lib && loclibpth="$loclibpth /usr/pkg/lib"
84 test -d /usr/pkg/include && locincpth="$locincpth /usr/pkg/include"