My main program has a global which will be refered by a shared library. And the main program needs to link with the shared library. On linux, I could just refer to this global variable directly in the shared lib. But on Android I got a link error. How to solve this problem?