diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index 1b94333cb9..1c640e4fa9 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -178,6 +178,6 @@ def build(bld): bld.env.LIB += ['ch'] bld.env.LIBPATH += ['modules/ChibiOS/'] - wraplist = ['strerror_r'] + wraplist = ['strerror_r', 'fclose', 'freopen', 'fread'] for w in wraplist: bld.env.LINKFLAGS += ['-Wl,--wrap,%s' % w]