Create shared library

I need to create a dynamic link shared library called, this
library will include libB.aso which is hidden from the application. I
only want to be packaged with the product. How do I create
libB.aso using the recursive makefile ?

I have used -A flag, to generate libB.a. Compiled the that links
to libB.a. But, the application will take a core dump when loading the

Basically, I need to create libB.aso using
ar -r libB.aso sharedobjs.o

It doesn’t seem to work using recursive makefile. It must have missed
some flag.

Appreciate any help.