another c file

Anton Yuzhaninov citrin at
Thu Jul 19 12:39:30 UTC 2012

On 18.07.2012 22:38, munkhabi wrote:
> My module uses external c file. How can I link it with ngx?

Add this file to build config for module, e. g.

                 $ngx_addon_dir/ngx_foo_bar_module.c \

If this code uses header files, it should be added to NGX_ADDON_DEPS

  Anton Yuzhaninov

More information about the nginx mailing list