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
  • 90,984
  • 81
  • 374
  • 818
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
  • 90,984
  • 81
  • 374
  • 818
hukka
  • 156
  • 3
1

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

Michael
  • 52,489
  • 21
  • 132
  • 138