[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#981983: libnewlib-arm-none-eabi: CFLAGS vs CFLAGS_FOR_TARGET



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
rojer@rojer.me

Reply to: