summaryrefslogtreecommitdiff
path: root/README.solaris
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2002-02-01 08:06:05 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-02 02:53:29 +0000
commit741448370a0796f47e22ef979f14593fc7533404 (patch)
tree1374ae2c921980fc9abb2434f668a898a89ff4ee /README.solaris
parent80bf4fef41cbd28e5329ef93733459f9342fffa7 (diff)
downloadperl-741448370a0796f47e22ef979f14593fc7533404.tar.gz
(Was Re: [ID 20020129.003] Trouble building perl 5.6.1)
Message-ID: <Pine.SOL.4.10.10202011243130.24740-100000@maxwell.phys.lafayette.edu> p4raw-id: //depot/perl@14522
Diffstat (limited to 'README.solaris')
-rw-r--r--README.solaris19
1 files changed, 18 insertions, 1 deletions
diff --git a/README.solaris b/README.solaris
index 0243f85703..5ec59d51f8 100644
--- a/README.solaris
+++ b/README.solaris
@@ -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