summaryrefslogtreecommitdiff
path: root/hints/linux.sh
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>1998-03-03 11:41:16 -0500
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-03-05 19:09:16 +0000
commit693762b493165ab96822ef2342af62f74dc0367b (patch)
tree3627087dfd4bdd21c3a4e303b875d4af19dd8e0a /hints/linux.sh
parentd1ca3daa86c9b198ada1278ef16d193996bbf3c9 (diff)
downloadperl-693762b493165ab96822ef2342af62f74dc0367b.tar.gz
Configure patches -01 and -02 for 5.004_61.
p4raw-id: //depot/perl@783
Diffstat (limited to 'hints/linux.sh')
-rw-r--r--hints/linux.sh15
1 files changed, 12 insertions, 3 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 1ddbca1964..7347945c48 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -30,7 +30,8 @@ esac
ccflags="-Dbool=char -DHAS_BOOL $ccflags"
# BSD compatability library no longer needed
-set `echo X "$libswanted "| sed -e 's/ bsd / /'`
+# 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl.
+set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'`
shift
libswanted="$*"
@@ -194,7 +195,12 @@ fi
# it should be:
# ccdlflags='-Wl,-E'
-if [ "X$usethreads" != "X" ]; then
+# XXX EXPERIMENTAL A.D. 2/27/1998
+# XXX This script UU/usethreads.cbu will get 'called-back' by Configure
+# XXX after it has prompted the user for whether to use threads.
+cat > UU/usethreads.cbu <<'EOSH'
+case "$usethreads" in
+$define|true|[yY]*)
ccflags="-D_REENTRANT $ccflags"
# -lpthread needs to come before -lc but after other libraries such
# as -lgdbm and such like. We assume here that -lc is present in
@@ -203,4 +209,7 @@ if [ "X$usethreads" != "X" ]; then
set `echo X "$libswanted "| sed -e 's/ c / pthread c /'`
shift
libswanted="$*"
-fi
+ ;;
+esac
+EOSH
+# XXX EXPERIMENTAL --end of call-back