3 # hints file for OpenBSD; Todd Miller <millert@openbsd.org>
4 # Edited to allow Configure command-line overrides by
5 # Andy Dougherty <doughera@lafcol.lafayette.edu>
8 # OpenBSD has a better malloc than perl...
9 test "$usemymalloc" || usemymalloc='n'
11 # Currently, vfork(2) is not a real win over fork(2) but this will
12 # change in a future release.
15 # setre?[ug]id() have been replaced by the _POSIX_SAVED_IDS versions
16 # in 4.4BSD. Configure will find these but they are just emulated
17 # and do not have the same semantics as in 4.3BSD.
24 # Not all platforms support shared libs...
27 alpha|mips|powerpc|vax)
33 # we use -fPIC here because -fpic is *NOT* enough for some of the
34 # extensions like Tk on some OpenBSD platforms (ie: sparc)
35 cccdlflags="-DPIC -fPIC $cccdlflags"
36 lddlflags="-Bforcearchive -Bshareable $lddlflags"
40 # OpenBSD doesn't need libcrypt but many folks keep a stub lib
41 # around for old NetBSD binaries.
42 libswanted=`echo $libswanted | sed 's/ crypt / /'`
44 # Configure can't figure this out non-interactively
47 # cc is gcc so we can do better than -O
48 # Allow a command-line override, such as -Doptimize=-g
49 test "$optimize" || optimize='-O2'