X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README.solaris;h=a2f189da9a9d378bf93b736cee28fe784d9a16cc;hb=8fa7688f7865696bdfa78bc12d4ffb78bd1d6103;hp=0243f857037a6dc641cf784b4b53cf30fac00acf;hpb=37a78d018d93601f621417a5dad5f0d672927048;p=p5sagit%2Fp5-mst-13.2.git diff --git a/README.solaris b/README.solaris index 0243f85..a2f189d 100644 --- a/README.solaris +++ b/README.solaris @@ -134,7 +134,7 @@ If you use Sun's C compiler, make sure the correct directory If you use gcc, make sure your installation is recent and complete. As a point of reference, perl-5.6.0 built fine with -gcc-2.8.1 on both Solaris 2.6 and Solaris 8. You'll be able to +gcc-2.8.1 on both Solaris 2.6 and Solaris 8. You should Configure perl with sh Configure -Dcc=gcc @@ -153,14 +153,31 @@ your Solaris release. =head3 GNU as and GNU ld +The following information applies to gcc version 2. Volunteers to +update it as appropropriate for gcc version 3 would be appreciated. + The versions of as and ld supplied with Solaris work fine for building -perl. There is normally no need to install the GNU versions. +perl. There is normally no need to install the GNU versions to +compile perl. If you decide to ignore this advice and use the GNU versions anyway, then be sure that they are relatively recent. Versions newer than 2.7 are apparently new enough. Older versions may have trouble with dynamic loading. +If you wish to use GNU ld, then you need to pass it the -Wl,-E flag. +The hints/solaris_2.sh file tries to do this automatically by executing +the following commands: + + ccdlflags="$ccdlflags -Wl,-E" + lddlflags="$lddlflags -Wl,-E -G" + +However, over the years, changes in gcc, GNU ld, and Solaris ld have made +it difficult to automatically detect which ld ultimately gets called. +You may have to manually edit config.sh and add the -Wl,-E flags +yourself, or else run Configure interactively and add the flags at the +appropriate prompts. + If your gcc is configured to use GNU as and ld but you want to use the Solaris ones instead to build perl, then you'll need to add -B/usr/ccs/bin/ to the gcc command line. One convenient way to do