From 741448370a0796f47e22ef979f14593fc7533404 Mon Sep 17 00:00:00 2001 From: Andy Dougherty Date: Fri, 1 Feb 2002 08:06:05 -0500 Subject: (Was Re: [ID 20020129.003] Trouble building perl 5.6.1) Message-ID: p4raw-id: //depot/perl@14522 --- README.solaris | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'README.solaris') 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 -- cgit v1.2.1