Still a problem with 4.4, reported in Ubuntu: https://bugs.launchpad.net/debian/+source/newlib/+bug/2086618
I found that CFLAGS still have to be provided, even if empty, so my solution is: CFLAGS := CFLAGS= CFLAGS_FOR_TARGET="-g -O2 -ffunction-sections -fdata-sections" CFLAGS_NANO := CFLAGS= CFLAGS_FOR_TARGET="-g -Os -ffunction-sections -fdata-sections -fshort-wchar" -- Deomid "rojer" Ryabkov ro...@rojer.me