You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
For me, adding anything custom to
LDFLAGS
inuser.mak
causes broken builds due to duplicate linking. The providedLIBS
flag does nothing apparent whatsoever. For example, if I create a librarylibmy_lib.so
and place it inthird_party/lib
and simply set:I can see at the bulid failure that the final command has my
LDFLAGS
mistakenly duplicated: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 domake clean && make
from theswig
directory between builds! I put "missing instruction" in quotes, because the instructions do specify runningmake clean
between builds from root, which suggests you don't need it forswig
or they would have included it as before. It is not enough to runmake 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).The text was updated successfully, but these errors were encountered: