From: Steve Peters Date: Fri, 18 Nov 2005 00:54:53 +0000 (+0000) Subject: Initial, albeit hackish, support for the alpha version of Sun Studio X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6452e86c69b266bb897f98f3dddf2b34d349676e;p=p5sagit%2Fp5-mst-13.2.git Initial, albeit hackish, support for the alpha version of Sun Studio compilers of Linux. p4raw-id: //depot/perl@26153 --- diff --git a/README.linux b/README.linux new file mode 100644 index 0000000..c02ddd3 --- /dev/null +++ b/README.linux @@ -0,0 +1,39 @@ +If you read this file _as_is_, just ignore the funny characters you +see. It is written in the POD format (see pod/perlpod.pod) which is +specifically designed to be readable as is. + +=head1 NAME + +README.linux - Perl version 5 on Linux systems + +=head1 DESCRIPTION + +This document describes various features of Linux that will affect how Perl +version 5 (hereafter just Perl) is compiled and/or runs. + +=head2 Experimental Support for Sun Studio Compilers for Linux OS + +Sun Microsystems has released a port of their Sun Studio compiliers for +Linux. As of November 2005, only an alpha version has been released. +Until a release of these compilers is made, support for compiling Perl with +these compiler experimental. + +Also, some special instructions for building Perl with Sun Studio on Linux. +Following the normal C, you have to run make as follows: + + LDLOADLIBS=-lc make + +C is an environment variable used by the linker to link modules +C modules to glibc. Currently, that environment variable is not getting +populated by a combination of C entries and C. +While there may be a bug somewhere in Perl's configuration or +C causing the problem, the most likely cause is an +incomplete understanding of Sun Studio by this author. Further investigation +is needed to get this working better. + +=head1 AUTHOR + +Steve Peters + +Please report any errors, updates, or suggestions to F. + diff --git a/hints/linux.sh b/hints/linux.sh index 5c7e535..c894fde 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -83,6 +83,11 @@ case "`${cc:-cc} -V 2>&1`" in '') optimize='-O3' ;; esac ;; +*"Sun C"*) + optimize='-xO2' + cccdlflags='-KPIC' + lddlflags='-G -Bdynamic' + ;; esac case "$optimize" in