4 Mar
2014
4 Mar
'14
1:10 a.m.
On Mar 3, 2014, at 7:00 PM, Matthieu Brucher
You need to use the -fPIC option when building your code also. Any object files that are to be placed into a static library for the x86_64 architecture must be compiled using position-independent code.
That's not exactly true. Only code that can end up in a _shared_ library (i.e. source code of a shared library or a static library that is linked against a shared library) needs to be compiled with this option.
Thanks. I swapped the static/shared library type in my description before. I concur with your explanation. Jason