![](https://secure.gravatar.com/avatar/b8e98e90ee68e1128f9cbb53ecbf89d9.jpg?s=120&d=mm&r=g)
<41812F72.6@dwavesys.com>David Grant writes:
tom fogal wrote:
<41812971.5070606@dwavesys.com>David Grant writes: <snip>
I've seen -fPIC used a lot... Just looked at it's description on man gcc and I'm thinking that this will work on my machine but perhaps not on others?
<snip>
I wouldn't think twice about it, unless you're on some ill-used architecture that few people have even heard of.
Is there any way to tell if my g2c.a was actually compiled with -fPIC? And that they didn't rename it to g2c-pic.a? I'm using gentoo.
hrm. good question. i'm not sure, but if you look into it more and find out the answer i'd be interested to hear it. One option is to add -fPIC to your /etc/make.conf's CFLAGS, and then emerge g2c again. This should ensure it gets compiled with the right support and clobber your old g2c installation. HTH, -tom