https://bugs.freedesktop.org/show_bug.cgi?id=36139
Summary: static build with -fPIC misses some symbols Product: Mesa Version: 7.10 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Other AssignedTo: mesa-dev@lists.freedesktop.org ReportedBy: blor...@lbl.gov 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 -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev