johnsonjh / duma

duma: Detect Unintended Memory Access (D.U.M.A.) - A Red-Zone memory allocator
https://github.com/johnsonjh/duma
GNU General Public License v2.0
99 stars 10 forks source link

Local compiler flags ignored #208

Open PeterBBBBB opened 9 months ago

PeterBBBBB commented 9 months ago

The Makefile ignores any local settings of compiler flags (hardening for example). 1) Flags set with CFLAGS= which overwrites. CFLAGS+= would add to existing values. 2) Any local linker flags in $LDFLAGS are not used at all.

Carrying a patch for this here https://salsa.debian.org/debian/duma/-/blob/master/debian/patches/002-makefile.patch

C++ flags are usually in CXXFLAGS not CPPFLAGS (for the C preprocessor) but this does not itself seem to cause a problem.