summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorLupe Christoph <lupe@lupe-christoph.de>2000-08-09 13:35:54 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-11 01:36:16 +0000
commit7bd161a15a083a0aed82ba8e1fa3d6df6f975c68 (patch)
tree1227461bbcdeca6a69f6105c67a3416a787f157a /hints/solaris_2.sh
parentdaf4d4ea57f31fbfc23438d8d6f6bb9c48b870bd (diff)
downloadperl-7bd161a15a083a0aed82ba8e1fa3d6df6f975c68.tar.gz
Getting perlio and threads to compile
Message-ID: <20000809113554.G23160@alanya.lupe-christoph.de> (the Solaris version changes in Configure skipped) p4raw-id: //depot/perl@6594
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 21b0b0e4f5..4e5d6fa8ce 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -328,8 +328,12 @@ case "$usethreads" in
$define|true|[yY]*)
ccflags="-D_REENTRANT $ccflags"
- # sched_yield is in -lposix4
- set `echo X "$libswanted "| sed -e 's/ c / posix4 pthread c /'`
+ # sched_yield is in -lposix4 up to Solaris 2.6, in -lrt starting with Solaris 7
+ case `uname -r` in
+ 5.[0-6] | 5.5.1) sched_yield_lib="posix4" ;;
+ *) sched_yield_lib="rt";
+ esac
+ set `echo X "$libswanted "| sed -e "s/ c / $sched_yield_lib pthread c /"`
shift
libswanted="$*"
@@ -354,7 +358,7 @@ $define|true|[yY]*)
siglongjmp(env, 2);
}
EOM
- if test "`arch`" = i86pc -a "$osvers" = 2.6 && \
+ if test "`arch`" = i86pc -a `uname -r` = 5.6 && \
${cc:-cc} try.c -lpthread >/dev/null 2>&1 && ./a.out; then
d_sigsetjmp=$undef
cat << 'EOM' >&2