summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorReini Urban <rurban@x-ray.at>2011-11-15 16:14:28 -0600
committerFather Chrysostomos <sprout@cpan.org>2011-11-17 09:23:01 -0800
commit2485732a89bf5918fbda457cba014bb1b771356d (patch)
tree112e9a10c8f6d89df5c971c18c135fb5758d7bf1 /hints
parentceaf555e5ba90cfbfecd1d510d2dc88501bf0360 (diff)
downloadperl-2485732a89bf5918fbda457cba014bb1b771356d.tar.gz
Sun cc and CC do not support gcc attributes.
Similar code as in linux.sh
Diffstat (limited to 'hints')
-rw-r--r--hints/solaris_2.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index b147b61eb0..0574ce75c1 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -331,12 +331,28 @@ EOM
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: //ip'`"
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
fi