Forum: NGINX another c file

Posted by munkhabi (Guest)
on 2012-07-18 20:38
(Received via mailing list)
My module uses external c file. How can I link it with ngx?

thanks

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,228712,228712#msg-228712
Posted by Anton Yuzhaninov (Guest)
on 2012-07-19 14:40
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.