building bullet on amd64. no -fPIC ?

asmodehn
Posts: 1
Joined: Tue Sep 27, 2011 4:22 pm

building bullet on amd64. no -fPIC ?

Post by asmodehn »

Hi,

It seems bullet, when building on amd64 architecture, is not built with -fPIC...

Which leads to :

/usr/bin/ld: /usr/local/lib/libBulletDynamics.a(btTypedConstraint.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libBulletDynamics.a: could not read symbols: Bad value

when building shared libraries with Bullet on amd64.
It s explained nicely there (3.g) : http://www.gentoo.org/proj/en/base/amd6 ... t=1&chap=3