diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-29 10:57:28 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-07-29 10:57:28 +0000 |
commit | 144df5e170504bdb636e102a8feb4039b6df72c8 (patch) | |
tree | f78824356bc4c247d4db62a72acf9966b5cc8c63 /hints/dec_osf.sh | |
parent | 7a34a24b301fbc19c9ae40dd163e0135ac9cb09e (diff) | |
download | perl-144df5e170504bdb636e102a8feb4039b6df72c8.tar.gz |
DEC OSF/1 3.x did (does) not do sizer -v.
p4raw-id: //depot/perl@20298
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r-- | hints/dec_osf.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index f08c318b89..ea2646d823 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. # <spider@Orb.Nashua.NH.US> 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 <<EOF *** @@ -412,7 +415,7 @@ UGLY esac EOCBU -case "`/usr/sbin/sizer -v`" in +case "$myosvers" in *[1-4].0*) d_modfl=undef ;; # must wait till 5.0 esac |