Re: How to link a new library to nspr?

[email protected] Sun, 23 Nov 2008 22:02:04 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.nspr
Organization http://groups.google.com
Message-ID <[email protected]>
On Nov 18, 11:01 pm, [email protected] wrote:
> On Nov 18, 7:52 pm, Wan-Teh Chang <[email protected]> wrote:
>
> > On Tue, Nov 18, 2008 at 2:30 PM,  <[email protected]> wrote:
> > You can link with -lplc4 -lplds4 -lnspr4, which is guaranteed to
> > be enough.  You may omit -lplc4 or -lplds4 if your library doesn't
> > use the functions defined in those auxiliary libraries.  (-lnspr4 is
> > the main NSPR library.)
>
> > Wan-Teh
>
> Thank you,
> So, where would i place my library (which is separately built and in
> the form libxxx.so) in the source tree, and what flags (and makefiles)
> do I use to accomplish that?
> Thank you again,

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. I had to copy the library in to the
Obj_dir/dist/bin to get it to work. I am not sure why.
Thank you,