Search code examples
androidandroid-ndkndk-build

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?


Solution

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