X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsolaris_2.sh;h=2155e4959ee077d00bfbdc8de278eb9751793759;hb=ed423f7afb5038546a92d00ca689992f3e08bc61;hp=37142d04b6281d4592746b2b25ac30964c5d01ed;hpb=34073cabb53a557532d5a01f749b64f7e241d789;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 37142d0..2155e49 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -94,6 +94,21 @@ case "$workshoplibpth_done" in esac EOCBU +case "$cc" in +'') if test -f /opt/SUNWspro/bin/cc; then + cc=/opt/SUNWspro/bin/cc + cat <&4 + +You specified no cc but you seem to have the Workshop compiler +($cc) installed, using that. +If you want something else, specify that in the command line, +e.g. Configure -Dcc=gcc + +EOF + fi + ;; +esac + ###################################################### # General sanity testing. See below for excerpts from the Solaris FAQ. # @@ -409,6 +424,8 @@ EOM # Ditto. (Solaris 7) d_readdir_r_proto="$define" d_readdir64_r_proto="$define" + d_tmpnam_r_proto="$define" + d_ttyname_r_proto="$define" ;; esac @@ -457,6 +474,26 @@ EOM esac ;; esac +# gcc-2.8.1 on Solaris 8 with -Duse64bitint fails op/pat.t test 822 +# if we compile regexec.c with -O. Turn off optimization for that one +# file. See hints/README.hints , especially +# =head2 Propagating variables to config.sh, method 3. +# A. Dougherty May 24, 2002 +case "$use64bitint" in +"$define") + case "${gccversion}-${optimize}" in + 2.8*-O*) + # Honor a command-line override (rather unlikely) + case "$regexec_cflags" in + '') echo "Disabling optimization on regexec.c for gcc $gccversion" >&4 + regexec_cflags='optimize=' + echo "regexec_cflags='optimize=\"\"'" >> config.sh + ;; + esac + ;; + esac + ;; +esac EOCBU cat > UU/use64bitall.cbu <<'EOCBU'