Robin
Robin

Reputation: 10368

How to link a shared library with undefined symbols on Android?

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?

Upvotes: 1

Views: 972

Answers (1)

thiagolr
thiagolr

Reputation: 7027

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

Upvotes: 2

Related Questions