build/unix/mozconfig.stdcxx
author seabld
Sat, 22 Apr 2017 03:04:08 -0700
changeset 24476 8618e4c4ba9cbf23b2fd4953159fe7d5a23e7778
parent 22237 bc354348d8a3c3111341966442dcc97009518b05
permissions -rw-r--r--
Automated blocklist update from host sea-hp-linux64-3 - CLOSED TREE a=blocklist-update

# Avoid dependency on libstdc++ 4.7
ac_add_options --enable-stdcxx-compat

TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}

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

mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"