From dc305d03681e150b97acf4631a514868acd4b276 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 8 Feb 2005 18:01:04 +0000 Subject: Maybe it will run on SunOS 5.8 now. --- bin/9l | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bin/9l') diff --git a/bin/9l b/bin/9l index 3fea275c..eadf4d89 100755 --- a/bin/9l +++ b/bin/9l @@ -205,6 +205,19 @@ case "$tag" in ;; esac done + case "${SYSVERSION:-`uname -r`}" in + 5.[67]) + echo do not know how to link right thread library on "$tag" 1>&2 + ;; + 5.8) + # Some trickery is needed to force use of + # alternate thread lib from /usr/lib/lwp + # Likely, this only works with sun cc, + # for other compiler/loader we would need other flags. + ld="$ld -i" + extralibs="$extralibs /usr/lib/lwp/libthread.so -R/usr/lib/lwp:/usr/lib" + ;; + esac ;; *) echo do not know how to link on "$tag" 1>&2 -- cgit v1.2.3