summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 4ae9063c3b..b940663d35 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -2,7 +2,13 @@ usevfork=false
d_suidsafe=define
set `echo $glibpth | sed -e 's@/usr/ucblib@@'`
glibpth="$*"
-set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ ucb @ @'`
+# Remove bad libraries. -lucb contains incompatible routines.
+# -lld doesn't do anything useful.
+# -lmalloc can cause a problem with GNU CC & Solaris. Specifically,
+# libmalloc.a may allocate memory that is only 4 byte aligned, but
+# GNU CC on the Sparc assumes that doubles are 8 byte aligned.
+# Thanks to Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
+set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ malloc @ @' -e 's@ ucb @ @'`
libswanted="$*"
# Look for architecture name. We want to suggest a useful default
@@ -30,3 +36,4 @@ Remove /usr/ucb from your PATH if you have difficulties.
END
;;
esac
+