When building osmesa with GNU compilers as a static lib I used -fPIC (see below) but I got this error when compiling my application as shared library: /lib/libOSMesa32.a(ir_to_mesa.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/common/graphics/ParaView/Mesa-7.10.1/lib/libOSMesa32.a: could not read symbols: Bad value from config.log ./configure CC=cc CXX=CC CFLAGS=-fPIC LDFLAGS=-fPIC --prefix=/usr/common/graphics/ParaView/Mesa-7.10.1 --disable-shared --enable-static --disable-egl --disable-glw --disable-gallium --with-osmesa-bits=32 --with-driver=osmesa --enable-64-bit --disable-32-bit Apprently -fPIC isn't passed to compiler for all targets ? same thing occurs when using the traditional configs, eg linux-osmesa-static
You're not passing -fPIC in CXXFLAGS?
I thought mesa is a c library, and thus CXXFLAGS is not needed. Do I need it?
(In reply to comment #2) > I thought mesa is a c library, and thus CXXFLAGS is not needed. Do I need it? Probably; the new GLSL compiler is implemented in C++.
OK, lets close the bug until I have a chance to investigate further.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.