Re: How to link a new library to nspr?

Wan-Teh Chang <[email protected]> Mon, 24 Nov 2008 11:09:11 -0800
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On Sun, Nov 23, 2008 at 10:02 PM,  <[email protected]> wrote:
>
> I was able to link the library by using the makefile.in file in
> mozilla/nsprpub/pr/src file and adding my custom
> library to the EXTRA_LIBS += -lxxx, and putting my libxxx.so in usr/
> local/lib.

If you want to link libnspr4.so with your custom library, then
mozilla/nsprpub/pr/src/Makefile.in is the right place to do that.

> I had to copy the library in to the
> Obj_dir/dist/bin to get it to work. I am not sure why.

I don't know why either.  If /usr/local/lib is on your default shared
library search path, you should not need to copy your custom
library to Obj_dir/dist/bin.

Wan-Teh