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?

2 Answers 2

14

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

Sign up to request clarification or add additional context in comments.

1 Comment

I think -L stand for $(LOCAL_PATH)
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.