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