Dynamic Modules - Support CXXFLAGS

Patrik Mada Patrik.Mada at firma.seznam.cz
Fri Feb 28 09:14:31 UTC 2020

Dear NGINX developers,

we are using C++ dynamic modules in our NGINX based servers, while multiple Debian distributions have to be supported.
On older Debian distributions it is impossible to use more recent C++ standard, due to build defaulting to system provided clang package.

Our developers stood before decision to either create wrappers around modern C++ libraries which would be compliant with older standards or write the entire logic using obsolete featureless language.
Neither of these approaches is sustainable in terms of developers' productivity and long term maintenance.

Would it be possible to consider a change in dynamic modules' build system, so that C++ flags may be provided?
We propose a low intrusive changes concerning 3 files. The changes are backwards compatible: if CXX is not provided by an user, the build uses CC instead (as well as CFLAGS instead of CXXFLAGS).

Would you be so kind and share your opinion on those? Please find attachment provided bellow (the patch was created using Quilt).

Best Regards,
Patrik Mada

Je dobré vědět, že tento e-mail a přílohy jsou důvěrné. Pokud spolu jednáme o uzavření obchodu, vyhrazujeme si právo naše jednání kdykoli ukončit. Pro fanoušky právní mluvy - vylučujeme tím ustanovení občanského zákoníku o předsmluvní odpovědnosti. Pravidla o tom, kdo u nás a jak vystupuje za společnost a kdo může co a jak podepsat naleznete zde<https://onas.seznam.cz/cz/podpisovy-rad-cz.html>

You should know that this e-mail and its attachments are confidential. If we are negotiating on the conclusion of a transaction, we reserve the right to terminate the negotiations at any time. For fans of legalese—we hereby exclude the provisions of the Civil Code on pre-contractual liability. The rules about who and how may act for the company and what are the signing procedures can be found here<https://onas.seznam.cz/cz/podpisovy-rad-cz.html>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accept_cxx_flags.patch
Type: application/octet-stream
Size: 3417 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200228/36785ae9/attachment.obj>

More information about the nginx-devel mailing list