link with --as-needed and circular deps of pjmedia*

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 27, 2015 at 10:00:31AM +0200, Tzafrir Cohen wrote:

> Sadly I failed to make pjmedia and the rest of the pjmedia* libraries
> link. It seems pjpedia needs symbols from pjmedia-audiodev and
> pjmedia-videodev and vice-versa (See traces below). So I guess this
> means the three libraries cannot be separated and need to be merged to a
> single shared library.

I now have a rough copy of the changes.

http://anonscm.debian.org/cgit/pkg-voip/pjproject.git/log/?h=master-mergelibs

This is a branch with a messed history that includes those changes, but
the tree (and specifically debian/patches and debian/rules) should be
OK.

I added an extra patch to remove -lpjmedia-audiodev and
-lpjmedia-videodev and disable building them.

I wanted to avoid a big intrusive renaming patch, and thus I "copied"
them into pjmedia/src/pjmedia/ using symlinks (adding a prefix to the .c
files to avoid collision of errno.c).

This symlinking is not done in a patch. Rather, it is done in the build
rules, in debian/rules.

Any comments?

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux