------- Comment #3 from pinskia at gcc dot gnu dot org 2010-04-12 17:58 ------- What happens if you do: g++ -v -save-temps -G -o libfoo.so foo.C -fPIC aka add -fPIC when building the shared library?
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43734