GLX_USE_TLS breaks -fPIC build
Submitted by Lukáš Turek
Assigned to mes..@..op.org
Description
When Mesa is compiled with -DGLX_USE_TLS and -fPIC, libGL.so.1.2 is not a valid PIC library. Prelink says:
prelink: /usr/bin/glxgears: Cannot prelink against non-PIC shared library /usr/lib/opengl/xorg-x11/lib/libGL.so.1
The bug is present in 6.5 and current CVS (7.7.2006), not in 6.4.2.
See this report in Gentoo Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=136115
I'm using x86 with GCC 3.4.6, but others report the same problem with GCC 4.1.1.
Version: 6.5