X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README.solaris;h=5ec59d51f83e33255b9a5b042bc1eaac998376cc;hb=d334a774e0221a7562a9982157d75b00b084b2e0;hp=627bc73c893e4238eb36a4de157e0314fa70c3eb;hpb=1081c3b9ad8b1dc348e105ae0173a124e71062d1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/README.solaris b/README.solaris index 627bc73..5ec59d5 100644 --- a/README.solaris +++ b/README.solaris @@ -42,7 +42,7 @@ number as reported by uname. Here's a partial translation table: SunOS 5.8 Solaris 8 solaris 2.8 The complete table can be found in the Sun Managers' FAQ -L under +L under "9.1) Which Sun models run which versions of SunOS?". =head1 RESOURCES @@ -58,7 +58,7 @@ The Solaris FAQ is available at L. The Sun Managers' FAQ is available at -L +L =item Precompiled Binaries @@ -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 @@ -381,7 +398,7 @@ need to use perl's malloc, you can rebuild Perl from the sources and Configure the build with sh Configure -Dusemymalloc - + You should not use perl's malloc if you are building with gcc. There are reports of core dumps, especially in the PDL module. The problem appears to go away under -DDEBUGGING, so it has been difficult to