Welcome! Log In Create A New Profile

Advanced

Support per addon C++ flags

August 23, 2016 08:27PM
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, other module may complain.
And it gets applied on other non-C++ files, like a .c files.

Unfortunately, nginx apply -Werror to stop on any warning, so, the build process will stop at c files with error when -std=c++11 is given.
Subject Author Posted

Support per addon C++ flags

fengli August 23, 2016 08:27PM

Re: Support per addon C++ flags

fengli August 24, 2016 03:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 202
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready