On Fri, Mar 21, 2014 at 09:31:45AM +0100, Michael Olbrich wrote: > On Fri, Mar 21, 2014 at 09:04:21AM +0100, Alexander Aring wrote: > > While compiling nettle which depends on libgmp I got the following > > linking error: > > > > .../sysroot-target/usr/lib/libgmp.a(mp_get_fns.o): relocation > > R_ARM_THM_MOVW_ABS_NC against `__gmp_allocate_func' can not be used when > > making a shared object; recompile with -fPIC > > .../sysroot-target/usr/lib/libgmp.a: error adding symbols: Bad value > > > > This patch adds a "--with-pic" to the configure argument to solve this > > problem. > > I'd rather you remove the LIBGMP_STATIC option. The shared library is > always PIC. > Yea, that would be the alternative. I thought maybe there exist some other non mainline rules which need a static and not a shared lib.
Okay, then I drop the static lib thing and always build a shared library this will make the world much easier. - Alex -- ptxdist mailing list [email protected]
