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.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index 86a375bdc5..01a0d10c2a 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -519,6 +519,9 @@ cat > UU/uselongdouble.cbu <<'EOCBU'
case "$uselongdouble" in
"$define"|true|[yY]*)
if test -f /opt/SUNWspro/lib/libsunmath.so; then
+ # Unfortunately libpth has already been set and
+ # searched, so we need to add in everything manually.
+ libpth="$libpth /opt/SUNWspro/lib"
libs="$libs -lsunmath"
ldflags="$ldflags -L/opt/SUNWspro/lib -R/opt/SUNWspro/lib"
d_sqrtl=define