summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2019-10-17 17:26:58 -0500
committerathenian200 <athenian200@outlook.com>2019-10-21 04:53:44 -0500
commitcc8ff09bf06078c4c3b7d8abd93cc5ddc55edc2d (patch)
treef33bb9b839f46d2e606a543239df38baedb66b5c /js
parent1982ae21e8cc5907e5a996e3d9945818b1a95670 (diff)
downloaduxp-cc8ff09bf06078c4c3b7d8abd93cc5ddc55edc2d.tar.gz
MoonchildProductions#1251 - Part 25: Fix link paths.
This fix is a bit ugly and may need to be changed later if we switch a new GCC version, but the fact is that we use an architecture-specific path for GCC libraries on Solaris, so knowing the right prefix for GCC would only help so much, because it would still need to decide between ${gccdir}/lib and ${gccdir}/lib/amd64. The MOZ_FIX_LINK_PATHS variable puts the search paths into the right order without the need for me to use elfedit on the binaries afterwards.
Diffstat (limited to 'js')
-rw-r--r--js/src/old-configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/old-configure.in b/js/src/old-configure.in
index 45108ee59a..6566ce05ef 100644
--- a/js/src/old-configure.in
+++ b/js/src/old-configure.in
@@ -923,6 +923,14 @@ case "$target" in
fi
;;
+i*86-*-solaris*)
+ MOZ_FIX_LINK_PATHS="-L${DIST}/bin -R'\$\$ORIGIN':/usr/gcc/7/lib"
+ ;;
+
+x86_64-*-solaris*)
+ MOZ_FIX_LINK_PATHS="-L${DIST}/bin -R'\$\$ORIGIN':/usr/gcc/7/lib/amd64"
+ ;;
+
esac
dnl Only one oddball right now (QNX), but this gives us flexibility