build/unix/mozconfig.stdcxx
author Philipp Kewisch <mozilla@kewis.ch>
Mon, 26 Feb 2018 13:30:06 +0100
changeset 59352 c7fe8ceb6756fbf210ebb9a62c142660bfc11173
parent 57797 50504ece5f31731a4773b92aac4b204859b5a48a
permissions -rw-r--r--
Bug 1439275 - Enable cak locale for Thunderbird. r=me MozReview-Commit-ID: AQgCsfQ8PLK

# Avoid dependency on libstdc++ 4.7
export MOZ_STDCXX_COMPAT=1

TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}

# 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 "$TOOLTOOL_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:}$TOOLTOOL_DIR/gcc/lib64:$TOOLTOOL_DIR/gcc/lib32:$TOOLTOOL_DIR/gcc/lib
elif [ -f "$TOOLTOOL_DIR/clang/lib/libstdc++.so" ]; then
  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOOLTOOL_DIR/clang/lib
fi

mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"