rajeswari
rajeswari

Reputation: 187

How to specify path of libraries in Android.mk file or Application.mk file?

I need to specify the path of library in Application.mk file to link it correctly. How to do this? Is there any GCC command for that?

Upvotes: 11

Views: 14166

Answers (2)

hukka
hukka

Reputation: 156

You have to add LOCAL_LDLIBS := -L/path/to/the/library into the file Android.mk.

Upvotes: 14

Michael
Michael

Reputation: 54725

Add -L/path/to/the/library flag to gcc command line parameters.

Upvotes: 1

Related Questions