On RedHat 9, the dynamic loader will fail with a floating point exception if an attempt is made to dlopen("/usr/lib/libGL.so"). The (apparently) correct library is actually /usr/lib/tls/libGL.so. This change allows the TLS (Thread Local Storage) library to be used by default, if it exists.
On RedHat 9, the dynamic loader will fail with a floating
point exception if an attempt is made to dlopen("/usr/lib/libGL.so").
The (apparently) correct library is actually /usr/lib/tls/libGL.so.
This change allows the TLS (Thread Local Storage) library to be used
by default, if it exists.

The user could also set CR_SYSTEM_GL_PATH to "/usr/lib/tls/libGL.so",
or could set LD_ASSUME_KERNEL to "2.2.5", to get a similar effect;
but the two environment-variable-based approaches fail when using
autostart, since the remote shell invoked will *not* inherit
the environment.  Changing the default libGL path is the least
pervasive solution that works with both manual start and autostart.

rpavlik/chromium,rpavlik/chromium,rpavlik/chromium,rpavlik/chromium,rpavlik/chromium