This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Sun cc and CC do not support gcc attributes.
authorReini Urban <rurban@x-ray.at>
Tue, 15 Nov 2011 22:14:28 +0000 (16:14 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 17 Nov 2011 17:23:01 +0000 (09:23 -0800)
Similar code as in linux.sh

hints/solaris_2.sh

index b147b61..0574ce7 100644 (file)
@@ -331,12 +331,28 @@ EOM
                        if test ! "$use64bitall_done"; then
                                loclibpth="/usr/lib /usr/ccs/lib `$getworkshoplibs` $loclibpth"
                        fi
                        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
                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
 
                fi
        fi