mdounin at mdounin.ru
Tue May 23 16:30:42 UTC 2017
On Mon, May 22, 2017 at 01:14:04PM +0300, Sorin Manole wrote:
> Missed attachment.
> 2017-05-21 22:23 GMT+03:00 Sorin Manole <sorin.v.manole at gmail.com>:
> > Hello,
> > Would you be willing to accept a patch to support CXX and CXXFLAGS in
> > the nginx build logic?
> > This could be used to write C++ nginx module code.
> > I attached a partial implementation. Please confirm if this is the
> > correct approach.
There are no C++ files in nginx itself except a simple test module
which is to test if nginx headers are usable in C++. For this
purpose current approach of simply using C compiler and C compiler
flags is certainly enough.
We may consider something low-intrusive to make writing C++
modules easier. The patch you've provided doesn't look
Note well that if nginx build process is not enough for you, you
may consider using config.make mechanism, which allows generating
arbitrary make commands to be used to build your module.
More information about the nginx-devel