diff --git a/Tools/ardupilotwaf/boards.py b/Tools/ardupilotwaf/boards.py index b1aea6bc244cc..a52bb7814e841 100644 --- a/Tools/ardupilotwaf/boards.py +++ b/Tools/ardupilotwaf/boards.py @@ -1068,6 +1068,7 @@ def expand_path(p): env.CXXFLAGS.remove('-Werror=shadow') # wrap malloc to ensure memory is zeroed + # note that this also needs to be done in the CMakeLists.txt files env.LINKFLAGS += ['-Wl,--wrap,malloc'] # TODO: remove once hwdef.dat support is in place @@ -1399,7 +1400,6 @@ def configure_env(self, cfg, env): ] # wrap malloc to ensure memory is zeroed - # note that this also needs to be done in the CMakeLists.txt files env.LINKFLAGS += ['-Wl,--wrap,malloc'] if cfg.options.force_32bit: