How can i compile nginx with specific lib linkage

Maxim Dounin mdounin at
Fri Jan 24 15:48:42 UTC 2014


On Thu, Jan 23, 2014 at 11:35:44PM -0500, humank wrote:

> I have customized a new nginx add on module,and the module use an external
> lib (
> The method i called in is kimtest method.
> How can i configure the ./configure file and Makefile to prevent the error "
>  undefined reference to `kimtest' "
> Here is the configure file..
> auto/configure --with-debug --with-ld-opt="-L/usr/local/lib64"
> --add-module=./src/my_nginx_module
> while configuring .. everything seems ok, no error occurs.
> but while making ... "  undefined reference to `kimtest' "

Something like


in your module config file should do the trick.

Maxim Dounin

More information about the nginx mailing list