How to build root static library with spesific function?

Hi, all
i am trying to compile my geant3_vmc application. and now i am linking with the shared library such as -lVMC , -lGeom, …
Can I just build these share library into the root static library , and how to do that ?
it seems to me that the default root static library do not contain all the function/sub-library i need.

Thank you very much!

Hi,

you have to download the ROOT source distribution. After untarring it go to build/unix/makestatic.sh and remove the libs you need from the excl list.

Cheers, Fons.