summaryrefslogtreecommitdiffstats
path: root/build/unix/mozconfig.stdcxx
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /build/unix/mozconfig.stdcxx
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/unix/mozconfig.stdcxx')
-rw-r--r--build/unix/mozconfig.stdcxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/unix/mozconfig.stdcxx b/build/unix/mozconfig.stdcxx
new file mode 100644
index 0000000000..b263668aea
--- /dev/null
+++ b/build/unix/mozconfig.stdcxx
@@ -0,0 +1,17 @@
+# Avoid dependency on libstdc++ 4.7
+export MOZ_STDCXX_COMPAT=1
+
+# Depending whether GCC was built on a RedHat-based or a Debian-based system,
+# the directory containing 32-bits libraries can be either (respectively)
+# lib or lib32. The directory for 64-bits libraries is always lib64.
+if [ -f "$MOZ_FETCHES_DIR/gcc/lib64/libstdc++.so" ]; then
+ # We put both 32-bits and 64-bits library path in LD_LIBRARY_PATH: ld.so
+ # will prefer the files in the 32-bits path when loading 32-bits executables,
+ # and the files in the 64-bits path when loading 64-bits executables.
+ # We also put both possible 32-bits library paths.
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/gcc/lib64:$MOZ_FETCHES_DIR/gcc/lib32:$MOZ_FETCHES_DIR/gcc/lib
+elif [ -f "$MOZ_FETCHES_DIR/clang/lib/libstdc++.so" ]; then
+ LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/clang/lib:$MOZ_FETCHES_DIR/clang/lib32
+fi
+
+mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"