https://bugs.openldap.org/show_bug.cgi?id=9528
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- (In reply to Howard Chu from comment #1)
(In reply to Quanah Gibson-Mount from comment #0)
When building LMDB, specified hardening flags are thrown away due to the Makefile overriding CFLAGS:
Makefile:CFLAGS = $(THREADS) $(OPT) $(W) $(XCFLAGS)
Put them in XCFLAGS.
Seems like things should be the opposite direction, Makefile does XCFLAGS= $(THREADS) $(OPT) $(W) $(CFLAGS) then tweaked accordingly throughout (or similar).