Regenerate META.yml
[p5sagit/p5-mst-13.2.git] / hints / midnightbsd.sh
CommitLineData
7145db39 1usevfork='true'
2case "$usemymalloc" in
3 "") usemymalloc='n'
4 ;;
5esac
6libswanted=`echo $libswanted | sed 's/ malloc / /'`
7
8objformat=`/usr/bin/objformat`
9if [ x$objformat = xelf ]; then
10 libpth="/usr/lib /usr/local/lib"
11 glibpth="/usr/lib /usr/local/lib"
12 ldflags="-Wl,-E "
13 lddlflags="-shared "
14else
15 if [ -e /usr/lib/aout ]; then
16 libpth="/usr/lib/aout /usr/local/lib /usr/lib"
17 glibpth="/usr/lib/aout /usr/local/lib /usr/lib"
18 fi
19 lddlflags='-Bshareable'
20fi
21cccdlflags='-DPIC -fPIC'
22
23ccflags="${ccflags} -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H"
24if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
25 usenm=false
26fi
27
28signal_t='void'
29d_voidsig='define'
30
31# This script UU/usethreads.cbu will get 'called-back' by Configure
32# after it has prompted the user for whether to use threads.
33cat > UU/usethreads.cbu <<'EOCBU'
34case "$usethreads" in
35$define|true|[yY]*)
36 lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|sed -n '$p'`
37 ldflags="-pthread $ldflags"
38 d_gethostbyaddr_r="undef"
39 d_gethostbyaddr_r_proto="0"
40
41 set `echo X "$libswanted "| sed -e 's/ c / c_r /'`
42 shift
43 libswanted="$*"
44 # Configure will probably pick the wrong libc to use for nm scan.
45 # The safest quick-fix is just to not use nm at all...
46 usenm=false
47
48 unset lc_r
49
50 # Even with the malloc mutexes the Perl malloc does not
51 # seem to be threadsafe in MidnightBSD?
52 case "$usemymalloc" in
53 '') usemymalloc=n ;;
54 esac
55esac
56EOCBU
57
58# malloc wrap works
59case "$usemallocwrap" in
60'') usemallocwrap='define' ;;
61esac