# How i can use third party library while building own nginx module

**URL:** <https://www.ruby-forum.com/t/how-i-can-use-third-party-library-while-building-own-nginx-module/244979>\
**Category:** NGINX\
**Created:** [July 22, 2016, 5:11am UTC](https://www.ruby-forum.com/t/how-i-can-use-third-party-library-while-building-own-nginx-module/244979 "2016-07-22T05:11:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [July 22, 2016, 5:11am UTC](https://www.ruby-forum.com/t/how-i-can-use-third-party-library-while-building-own-nginx-module/244979/1 "2016-07-22T05:11:01Z")

</div>

Hi,

how i can use third party library while building own nginx module as i  
am  
using third party libraries.

Thanks,  
Pankaj

---

<div class="post-metadata">

**Author:** ![Pankaj\_Chaudhary](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f04885/32.png) [@Pankaj\_Chaudhary](https://www.ruby-forum.com/u/Pankaj_Chaudhary)\
**Post date:** [July 22, 2016, 9:01am UTC](https://www.ruby-forum.com/t/how-i-can-use-third-party-library-while-building-own-nginx-module/244979/2 "2016-07-22T09:01:10Z")

</div>

On Fri, Jul 22, 2016 at 08:39:52AM +0530, Pankaj Chaudhary wrote:

Hi there,

> how i can use third party library while building own nginx module as i am  
> using third party libraries.

Do you know the compiler command-line that you would need to build your  
module with the third party library, if nginx were not involved?

(It probably includes a “-l” argument, and possibly “-L” and “-I”  
as well.)

If you look at, for example, auto/lib/geoip/conf or  
auto/lib/openssl/conf  
in the nginx source, does that show you how to set things like  
nginx\_feature\_libs and CORE\_LIBS in your module “config” file, in order  
that nginx will use a similar compiler command-line?

Good luck with it,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
