سؤال

I am currently porting a program from MIPS platform to Android ARM platform. The program has a dynamic plugin, which is a shared so file. The so file will access the main program's functions.

My problem is that how can I get the so file linked with the undefined references?

I Googled and found that there are "-undefined dynamic_lookup" flag on Darwin platform. What is the similar approach for Android native build system?

هل كانت مفيدة؟

المحلول

Add this on your Android.mk:

LOCAL_ALLOW_UNDEFINED_SYMBOLS := true

But you might have problems during runtime if it doesn't find the symbols...

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top