Create shared library

I need to create a dynamic link shared library called libA.so, this
library will include libB.aso which is hidden from the application. I
only want libA.so 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 libA.so that links
to libB.a. But, the application will take a core dump when loading the
libA.so.

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.

Thanks,
-Beth