atom feed4 messages in ru.sysoev.nginxRe: Compiling only a module
FromSent OnAttachments
Dennis J.Jan 12, 2010 5:12 am 
proforgJan 12, 2010 6:50 am 
Peter LeonovJan 12, 2010 7:50 am 
merlin coreyJan 12, 2010 4:18 pm 
Subject:Re: Compiling only a module
From:Peter Leonov (goj@gmail.com)
Date:Jan 12, 2010 7:50:22 am
List:ru.sysoev.nginx

On 12.01.2010, at 16:12, Dennis J. wrote:

Hi, I'm trying to develop a module for nginx and I'm wondering how I can compile
just a module by itself. I check out this page: http://www.evanmiller.org/nginx-modules-guide.html#compiling but it basically says that you have to compile nginx completely to compile the
module. This seems rather cumbersome, is there a way around this?

Nginx modules a all compiled in. There is no mechanism to build and load a
shared library. Fortunately, the makefile is properly configured to recompile only changed
stuff. To fine tune dependencies within your module, try NGX_ADDON_DEPS.

Other way is to write you own custom makefile in your module dir. But it may be
a complicated thing due to cross platform nature of nginx.

Peter.