> I've added CFLAGS += -fPIC -DPIC to rules but that didn't help and it > doesn't appear to be using -Wl,shared. if you look at the link stage for the libraries, for example ref_soft.so, you will see that -Wl and -shared are being used. looks like this gets added in via either configure, libtool, or ltmain.sh. here's a perhaps useful link: http://sam.zoy.org/blog/2007-04-13-shlib-with-non-pic-code-have-inline-assembly-and-pic-mix-well