mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-02-25 01:00:09 -05:00

In particular, the _GNU_SOURCE feature test macro needs to be set in order to correctly define mmap(2) flags such as MAP_ANONYMOUS. Otherwise, compilation of some test files fails when CPPFLAGS is not defined in the initial user environment, as Make then does not export it from the root Makefile to the sub-make.