Avoid clobbering CXX flags when compiling lua-aho-corasick
+ 1
− 1
@@ -7,7 +7,7 @@ $(call make_lua_module,policy)
Self sign-up has been disabled due to increased spam activity. If you want to get access, please send an email to a project owner (preferred) or at gitlab(at)nic(dot)cz. We apologize for the inconvenience.
Without this patch, any externally-set CXXFLAGS will be discarded when compiling lua-aho-corasick.
This helps (for example) in debian, where the build system explicitly sets some useful flags for the C++ compiler in CXXFLAGS (just as it passes useful flags for the C compiler in CFLAGS).
This only became an issue when upstream lua-aho-corasick stopped passing CFLAGS to the C++ compiler (which was the right thing to do!)