Re: Support per addon C++ flags

2016-08-24 Thread fengli
Update with my findings. Nginx auto/configure will invoke config.make in the addon's directory. It's get invoked after the part of Makefile get generated, thus addon developer can use config.make to modify the Makefile generated by nginx's configure command line. Posted at Nginx Forum: https://fo

Support per addon C++ flags

2016-08-23 Thread fengli
I'm trying to compile my module with C++ with additional flags, more specific, -std=c++11. I want to get my module use the standard nginx build scripts, like auto/configure, etc. However, looks like nginx only allows C++ options on global level. So, if I specify the -std=c++11 in --with_cc_opt, oth