Skip to content

Avoid clobbering CXX flags when compiling lua-aho-corasick

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!)

Edited by Daniel Kahn Gillmor

Merge request reports