build/unix/mozconfig.stdcxx
author Matt Woodrow <mwoodrow@mozilla.com>
Wed, 27 May 2020 00:31:51 +0000
changeset 532308 a5792dafa4798ba056848f773c20b9f762a4a874
parent 488149 73576d4b23de5f35476f4e3d439adf498b9ab5d1
permissions -rw-r--r--
Bug 1631405 - Run nsMixedContentBlocker::AsyncOnChannelRedirect checks in the parent for documents, since this is now supported correctly. r=ckerschb Differential Revision: https://phabricator.services.mozilla.com/D75449

# 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 "$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"