From: Jarkko Hietaniemi Date: Tue, 29 Jul 2003 10:57:28 +0000 (+0000) Subject: DEC OSF/1 3.x did (does) not do sizer -v. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=144df5e170504bdb636e102a8feb4039b6df72c8;p=p5sagit%2Fp5-mst-13.2.git DEC OSF/1 3.x did (does) not do sizer -v. p4raw-id: //depot/perl@20298 --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index f08c318..ea2646d 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -225,6 +225,9 @@ libswanted="`echo $libswanted | sed -e 's/ ndbm / /'`" # the basic lddlflags used always lddlflags='-shared -expect_unresolved "*"' +# Intentional leading tab. + myosvers="`/usr/sbin/sizer -v 2>/dev/null || head -1 /etc/motd`" + # Fancy compiler suites use optimising linker as well as compiler. # case "`uname -r`" in @@ -234,7 +237,7 @@ case "`uname -r`" in *) if $test "X$optimize" = "X$undef"; then lddlflags="$lddlflags -msym" else - case "`/usr/sbin/sizer -v`" in + case "$myosvers" in *4.0D*) # QAR 56761: -O4 + .so may produce broken code, # fixed in 4.0E or better. @@ -286,7 +289,7 @@ esac # emulate_eaccess(). # Fixed in V5.0A. -case "`/usr/sbin/sizer -v`" in +case "$myosvers" in *5.0[A-Z]*|*5.[1-9]*|*[6-9].[0-9]*) : ok ;; @@ -360,7 +363,7 @@ cat > UU/uselongdouble.cbu <<'EOCBU' # after it has prompted the user for whether to use long doubles. case "$uselongdouble" in $define|true|[yY]*) - case "`/usr/sbin/sizer -v`" in + case "$myosvers" in *[1-4].0*) cat >&4 <