Re: How to link a new library to nspr?
Wan-Teh Chang <[email protected]> Tue, 18 Nov 2008 16:52:36 -0800
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Nov 18, 2008 at 2:30 PM, <[email protected]> wrote: > Hello, > I was wondering how you add a new library (a la -lxxx) to an NSPR > build. > The new functionality I want is used in mozilla/nsprpub/pr/src/ > pthreads/ and I have the library.so I want to use as well as the > header file for it (which I added in /mozilla/nsprpub/pr/include/). > Where do I link my library to NSPR? 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