Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDFLAGS broken? #2

Open
entangledloops opened this issue May 13, 2016 · 0 comments
Open

LDFLAGS broken? #2

entangledloops opened this issue May 13, 2016 · 0 comments

Comments

@entangledloops
Copy link

entangledloops commented May 13, 2016

For me, adding anything custom to LDFLAGS in user.mak causes broken builds due to duplicate linking. The provided LIBS flag does nothing apparent whatsoever. For example, if I create a library libmy_lib.so and place it in third_party/lib and simply set:

LDFLAGS += '-lmy_lib'

I can see at the bulid failure that the final command has my LDFLAGS mistakenly duplicated:

... -lmy_lib -lmy_lib

Any ideas? (Using r4687).

Temporary Workaround

Copied my library into third_party/lib and that automatically included and built it, but in the end the library produced (pjsua2) was missing symbols. I was also getting "File truncated" issues, which is caused by a "missing instruction" from the pjsip setup page: be sure you do make clean && make from the swig directory between builds! I put "missing instruction" in quotes, because the instructions do specify running make clean between builds from root, which suggests you don't need it for swig or they would have included it as before. It is not enough to run make clean from the root, as it leaves behind old object files that will not be re-linked to the newer versions of associated parent libs (necessarily).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant