Domanda

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?

È stato utile?

Soluzione

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...

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top