11

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?

jww
  • 97,681
  • 90
  • 411
  • 885
rajeswari
  • 187
  • 2
  • 3
  • 9

2 Answers2

14

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

jww
  • 97,681
  • 90
  • 411
  • 885
hukka
  • 156
  • 3
1

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

Michael
  • 53,859
  • 22
  • 133
  • 139