Creating shared library

Hi all,
I want to create a shared library by statically linking all
required libraries. Then I want to download it to an arm procesor. So
the shared lib is to be created for arm processors.
I tried with “ld -static …” option. But it is not working in the
target. It is making for JNI (Java Native Interfcae) application. The
Java VM (j9)gives an error “”
Could anyone have a look at this…??
thanks
Mathew