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