From 2485732a89bf5918fbda457cba014bb1b771356d Mon Sep 17 00:00:00 2001 From: Reini Urban Date: Tue, 15 Nov 2011 16:14:28 -0600 Subject: Sun cc and CC do not support gcc attributes. Similar code as in linux.sh --- hints/solaris_2.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'hints') 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 -- cgit v1.2.1