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_SRCS="$NGX_ADDON_SRCS \ $ngx_addon_dir/ngx_foo_bar_module.c \ $ngx_addon_dir/some_extrenal_file.c" If this code uses header files, it should be added to NGX_ADDON_DEPS -- Anton Yuzhaninov