Source code

Revision control

Other Tools

1
# Avoid dependency on libstdc++ 4.7
2
export MOZ_STDCXX_COMPAT=1
3
4
TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
5
6
# Depending whether GCC was built on a RedHat-based or a Debian-based system,
7
# the directory containing 32-bits libraries can be either (respectively)
8
# lib or lib32. The directory for 64-bits libraries is always lib64.
9
if [ -f "$MOZ_FETCHES_DIR/gcc/lib64/libstdc++.so" ]; then
10
# We put both 32-bits and 64-bits library path in LD_LIBRARY_PATH: ld.so
11
# will prefer the files in the 32-bits path when loading 32-bits executables,
12
# and the files in the 64-bits path when loading 64-bits executables.
13
# We also put both possible 32-bits library paths.
14
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/gcc/lib64:$MOZ_FETCHES_DIR/gcc/lib32:$MOZ_FETCHES_DIR/gcc/lib
15
elif [ -f "$MOZ_FETCHES_DIR/clang/lib/libstdc++.so" ]; then
16
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZ_FETCHES_DIR/clang/lib:$MOZ_FETCHES_DIR/clang/lib32
17
fi
18
19
mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"