From 5d95fa0453d75430e47a19cf7e913b62a4a20e07 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Tue, 13 Apr 1999 01:49:33 +0200
Subject: [PATCH] Now the Image module compiles on Solaris/Sparc again.

Rev: src/configure.in:1.273
---
 src/configure.in | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/configure.in b/src/configure.in
index 64eee0a829..cea62a49b4 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -1,4 +1,4 @@
-AC_REVISION("$Id: configure.in,v 1.272 1999/03/26 19:29:50 hubbe Exp $")
+AC_REVISION("$Id: configure.in,v 1.273 1999/04/12 23:49:33 grubba Exp $")
 AC_INIT(interpret.c)
 AC_CONFIG_HEADER(machine.h)
 
@@ -2757,8 +2757,19 @@ AC_MSG_CHECKING(CCSHARED)
 if test -z "$CCSHARED" ; then
   if test "$GCC" = yes ; then
     case $pike_cv_sys_os in
-      BSD/OS*) CCSHARED="";;
-      *) CCSHARED="-fpic";;
+      BSD/OS*)
+	CCSHARED=""
+      ;;
+      Solaris*)
+        # The Image module runs out of symbol reference space unless we
+	# use the large PIC model:
+	# ld: fatal: too many symbols require `small' PIC references:
+        # 	have 2205, maximum 2048 -- recompile some modules -K PIC.
+	CCSHARED="-fPIC"
+      ;;
+      *)
+	CCSHARED="-fpic"
+      ;;
     esac
   else
     case $pike_cv_sys_os in
-- 
GitLab