Adding an static library to a module

HI,
my name pavan, presently working on nginx, i want to add an static
library to an thirdparty module at compile time to module. or to config
file. if any know the solution plz reply .

or

i am getting “undefined reference” error to solve it, i want to add an
library libxxx.a

Thanks and regards
pavan

Posted at Nginx Forum:

HI,
my name pavan, presently working on nginx, i want to add an static
library to an thirdparty module at compile time to module. or to config
file.
How to add an static library (libxx.a ) to an add on module to nginx ?
if any know the solution plz help me .

or

i am getting “undefined reference” error to solve when make is done, if
to solve the this error i need to add library, but i am not able to add
library to the module. so can u plz help me how to add an static library
to module? i want to add an library libxxx.a to solve this problem
because the i tested small c application by adding library at compile
time through command promt.
like :: cc test.c libxx.a(tested in c program it works) , now i want
this in nginx.

Posted at Nginx Forum:

Hello!

On Fri, Jun 24, 2011 at 07:46:01AM -0400, [email protected]
wrote:

i am getting “undefined reference” error to solve when make is done, if
to solve the this error i need to add library, but i am not able to add
library to the module. so can u plz help me how to add an static library
to module? i want to add an library libxxx.a to solve this problem
because the i tested small c application by adding library at compile
time through command promt.
like :: cc test.c libxx.a(tested in c program it works) , now i want
this in nginx.

In file “config” you may add something like this:

CORE_LIBS="$CORE_LIBS -L /path/to/library -lxx"

or

CORE_LIBS="$CORE_LIBS /path/to/library/libxx.a"

You may also want to add the library file to $LINK_DEPS to make
sure nginx will correctly relink itself on make if library
changes.

Maxim D.

HI
Thanks alot
it works.

Thanks and regards
pavan

Posted at Nginx Forum: