94 lines
2.0 KiB
Plaintext
94 lines
2.0 KiB
Plaintext
--- hints/freebsd.sh.orig Fri Feb 12 09:05:48 1999
|
|
+++ hints/freebsd.sh Fri May 7 22:50:53 1999
|
|
@@ -72,6 +72,7 @@
|
|
d_setreuid='define'
|
|
d_setegid='undef'
|
|
d_seteuid='undef'
|
|
+ d_dosuid='define'
|
|
test -r ./broken-db.msg && . ./broken-db.msg
|
|
;;
|
|
#
|
|
@@ -85,12 +86,18 @@
|
|
d_setreuid='define'
|
|
d_setegid='undef'
|
|
d_seteuid='undef'
|
|
+ d_dosuid='define'
|
|
;;
|
|
#
|
|
# Guesses at what will be needed after 2.2
|
|
*) usevfork='true'
|
|
usemymalloc='n'
|
|
libswanted=`echo $libswanted | sed 's/ malloc / /'`
|
|
+ d_setregid='define'
|
|
+ d_setreuid='define'
|
|
+ d_setegid='undef'
|
|
+ d_seteuid='undef'
|
|
+ d_dosuid='define'
|
|
;;
|
|
esac
|
|
|
|
@@ -99,7 +106,11 @@
|
|
case "$osvers" in
|
|
0.*|1.0*) ;;
|
|
|
|
-3.*|4.0*)
|
|
+2.*) cccdlflags='-DPIC -fpic'
|
|
+ lddlflags="-Bshareable $lddlflags"
|
|
+ ;;
|
|
+
|
|
+*)
|
|
objformat=`/usr/bin/objformat`
|
|
if [ x$objformat = xelf ]; then
|
|
libpth="/usr/lib /usr/local/lib"
|
|
@@ -115,10 +126,6 @@
|
|
fi
|
|
cccdlflags='-DPIC -fpic'
|
|
;;
|
|
-
|
|
-*) cccdlflags='-DPIC -fpic'
|
|
- lddlflags="-Bshareable $lddlflags"
|
|
- ;;
|
|
esac
|
|
|
|
cat <<'EOM' >&4
|
|
@@ -166,7 +173,7 @@
|
|
$define|true|[yY]*)
|
|
lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'`
|
|
case "$osvers" in
|
|
- 2.2.8*|3.*|4.*)
|
|
+ 2.2.8*)
|
|
if [ ! -r "$lc_r" ]; then
|
|
cat <<EOM >&4
|
|
POSIX threads should be supported by FreeBSD $osvers --
|
|
@@ -179,7 +186,7 @@
|
|
fi
|
|
ldflags="-pthread $ldflags"
|
|
;;
|
|
- 2.2*)
|
|
+ 0.*|1.*|2.0*|2.1*|2.2*)
|
|
cat <<EOM >&4
|
|
POSIX threads are not supported well by FreeBSD $osvers.
|
|
|
|
@@ -192,12 +199,17 @@
|
|
EOM
|
|
exit 1
|
|
;;
|
|
- *) cat <<EOM >&4
|
|
-I did not know that FreeBSD $osvers supports POSIX threads.
|
|
+ *) if [ ! -r "$lc_r" ]; then
|
|
+ cat <<EOM >&4
|
|
+POSIX threads should be supported by FreeBSD $osvers --
|
|
+but your system is missing the shared libc_r.
|
|
+(/sbin/ldconfig -r doesn't find any).
|
|
|
|
-Feel free to tell perlbug@perl.com otherwise.
|
|
+Consider using the latest STABLE release.
|
|
EOM
|
|
- exit 1
|
|
+ exit 1
|
|
+ fi
|
|
+ ldflags="-pthread $ldflags"
|
|
;;
|
|
esac
|
|
|