mozconfig.stdcxx 695 B

12345678910111213141516
  1. # Avoid dependency on libstdc++ 4.7
  2. ac_add_options --enable-stdcxx-compat
  3. TOOLTOOL_DIR=${TOOLTOOL_DIR:-$topsrcdir}
  4. if [ -f "$TOOLTOOL_DIR/clang/lib/libstdc++.so" ]; then
  5. LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOOLTOOL_DIR/clang/lib
  6. elif [ -f "$TOOLTOOL_DIR/gcc/lib/libstdc++.so" ]; then
  7. # We put both 32-bits and 64-bits library path in LD_LIBRARY_PATH: ld.so
  8. # will prefer the files in the 32-bits path when loading 32-bits executables,
  9. # and the files in the 64-bits path when loading 64-bits executables.
  10. LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOOLTOOL_DIR/gcc/lib64:$TOOLTOOL_DIR/gcc/lib
  11. fi
  12. mk_add_options "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH"