nginx custom module thread local ctx

姚伟斌 yaoweibin at gmail.com
Fri Jan 4 05:12:50 UTC 2013


see the config as an example:
https://github.com/pagespeed/ngx_pagespeed/blob/master/config

You should add the library std++ with gcc.

2012/12/29 Ruslan Mullakhmetov <rm at oft-media.ru>

> Hi!
>
> I develop some module for nginx and need to use c++ source files in it.
>
> I found the way to compile it (extern c + compiler recognize .cpp files),
> but know i need to specify some flags.
>
> Could you suggest a method to tell build system which compiler (CXX) and
> which flags to use in module/config file?
>
> I saw in Makefile that it use $(CC) despite of there is unused definition
> of $(CPP) which is actually preprocessor and no CXXFLAFS /CPPFLAGS.
>
> I will greatly appreciate your help.
>
> I could сorrect Makefile myself but it get's irrating with each
> reconfigure.
>
> --
> BR, Ruslan Mullakhmetov
>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel




-- 
Weibin Yao
Developer @ Server Platform Team of Taobao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130104/316b4e3d/attachment.html>


More information about the nginx-devel mailing list