Linux: update fails because bundled libstdc++.so.6 is not found
When an ESR31-based browser tries to restart after applying an update on Linux, it fails to restart because the bundled copy of libstdc++.so.6 is not found. Here is the full error message:
XPCOMGlueLoad error for file /home/brade/Desktop/tbb-4.0a3-ru/Browser/libxul.so:
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required
by /home/brade/Desktop/tbb-4.0a3-ru/Browser/libxul.so)
Couldn't load XPCOM.
Tor Browser exited abnormally. Exit code: 255
Although LD_LIBRARY_PATH is set inside start-tor-browser to avoid this problem, apparently something within the updater code clears it before restarting Firefox. Relying on LD_LIBRARY_PATH also means that the following will fail too: cd Browser ./firefox
Can we use -rpath at link time instead or will that cause other problems?