diff options
author | Andy Dougherty <doughera@lafayette.edu> | 2012-09-04 11:36:53 -0400 |
---|---|---|
committer | Andy Dougherty <doughera@lafayette.edu> | 2012-09-04 11:36:53 -0400 |
commit | 39234ceabe18aeebbd90822c648a304dcc29a895 (patch) | |
tree | 7429b590ad3a9fabda8a9e86735080a097f259ce /hints | |
parent | b8cad20a5c86e1d8deb73ddf0713fe32e6e90b92 (diff) | |
download | perl-39234ceabe18aeebbd90822c648a304dcc29a895.tar.gz |
Collapse duplicate settings in hints/solaris_2.sh
Diffstat (limited to 'hints')
-rw-r--r-- | hints/solaris_2.sh | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 615d440910..5e6cf103df 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -328,24 +328,17 @@ EOM cc_name=`./try` if test "$cc_name" = "workshop"; then ccversion="`${cc:-cc} -V 2>&1|sed -n -e '1s/^[Cc][Cc]: //p'`" - if test ! "$use64bitall_done"; then - loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth" - fi - # Sun cc doesn't support gcc attributes - d_attribute_format='undef' - d_attribute_malloc='undef' - d_attribute_nonnull='undef' - d_attribute_noreturn='undef' - d_attribute_pure='undef' - d_attribute_unused='undef' - d_attribute_warn_unused_result='undef' fi if test "$cc_name" = "workshop CC"; then ccversion="`${cc:-CC} -V 2>&1|sed -n -e '1s/^[Cc][C]: //p'`" + fi + case "$cc_name" in + workshop*) + # Settings for either cc or CC if test ! "$use64bitall_done"; then loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth" fi - # Sun CC doesn't support gcc attributes + # Sun CC/cc don't support gcc attributes d_attribute_format='undef' d_attribute_malloc='undef' d_attribute_nonnull='undef' @@ -353,7 +346,8 @@ EOM d_attribute_pure='undef' d_attribute_unused='undef' d_attribute_warn_unused_result='undef' - fi + ;; + esac fi # See if as(1) is GNU as(1). GNU might not work for this job. |