From: Jarkko Hietaniemi Date: Mon, 25 Aug 2003 16:35:26 +0000 (+0000) Subject: SunOS 4.1.4 is working, too. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=42600de6faf84a8f4debbc94cdbdd662da2c4393;p=p5sagit%2Fp5-mst-13.2.git SunOS 4.1.4 is working, too. p4raw-id: //depot/perl@20886 --- diff --git a/README.solaris b/README.solaris index 202c8ff..7e9b308 100644 --- a/README.solaris +++ b/README.solaris @@ -233,16 +233,6 @@ 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. -In SunOS 4.x you most probably want to use the SunOS ld, /usr/bin/ld, -since the more recent versions of GNU ld (like 2.13) do not seem to -work for building Perl anymore. When linking the extensions, the -GNU ld gets very unhappy and spews a lot of errors like this - - ... relocation truncated to fit: BASE13 ... - -and dies. Therefore the SunOS 4.1 hints file explicitly sets the -ld to be /usr/bin/ld. - 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 @@ -602,6 +592,22 @@ symbolic link /dev/urandom pointing to /dev/random. It may be possible to use the Entropy Gathering Daemon (written in Perl!), available from L. +=head1 SunOS 4.x + +In SunOS 4.x you most probably want to use the SunOS ld, /usr/bin/ld, +since the more recent versions of GNU ld (like 2.13) do not seem to +work for building Perl anymore. When linking the extensions, the +GNU ld gets very unhappy and spews a lot of errors like this + + ... relocation truncated to fit: BASE13 ... + +and dies. Therefore the SunOS 4.1 hints file explicitly sets the +ld to be /usr/bin/ld. + +As of Perl 5.8.1 the dynamic loading of libraries (DynaLoader, XSLoader) +also seems to have become broken in in SunOS 4.x. Therefore the default +is to build Perl statically. + =head1 AUTHOR The original was written by Andy Dougherty F diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh index 4c9ff14..4f06d6e 100644 --- a/hints/sunos_4_1.sh +++ b/hints/sunos_4_1.sh @@ -88,3 +88,8 @@ fi # from many extensions, like B and Data::Dumper. ld=/usr/bin/ld +# As of Perl 5.8.1 it seems that dynaloading is broken in SunOS 4.x, sniff. +case "$usedl" in +'') usedl=undef ;; +esac +