develooper Front page | perl.perl5.porters | Postings from March 2000

[PATCH 5.6.0-RC2] hints/freebsd.sh - make perl work on FreeBSD 5.0

Thread Next
From:
Anton Berezin
Date:
March 15, 2000 05:51
Subject:
[PATCH 5.6.0-RC2] hints/freebsd.sh - make perl work on FreeBSD 5.0
Message ID:
20000315145237.C81372@plab.ku.dk
Without this patch, 5.6.0-RC2 does not compile on FreeBSD 5.0-current
(which has just been born).  With it, all tests are successful for both

-des and -Dusethreads -des configurations.

Cheers, Anton.

--- freebsd.sh.orig	Wed Mar 15 14:43:24 2000
+++ freebsd.sh	Wed Mar 15 14:30:55 2000
@@ -99,7 +99,7 @@
 case "$osvers" in
 0.*|1.0*) ;;
 
-3.*|4.0*)
+3.*|4.*|5.0*)
         objformat=`/usr/bin/objformat`
         if [ x$objformat = xelf ]; then
             libpth="/usr/lib /usr/local/lib"
@@ -122,8 +122,8 @@
 esac
 
 case "$osvers" in
-4.0*)
-	if /usr/bin/file /usr/lib/libc.so.3 | /usr/bin/grep -vq "not stripped" ; then
+4.*|5.0*)
+	if /usr/bin/file -L /usr/lib/libc.so | /usr/bin/grep -vq "not stripped" ; then
 	    usenm=false
 	fi
 esac
@@ -173,7 +173,7 @@
 $define|true|[yY]*)
         lc_r=`/sbin/ldconfig -r|grep ':-lc_r'|awk '{print $NF}'|tail -1`
         case "$osvers" in  
-	2.2.8*|3.*|4.*)
+	2.2.8*|3.*|4.*|5.0*)
 	      if [ ! -r "$lc_r" ]; then
 	      cat <<EOM >&4
 POSIX threads should be supported by FreeBSD $osvers --



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About