How to specify path of libraries in Android.mk fil

2019-01-18 23:58发布

问题:

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?

回答1:

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



回答2:

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