how to disable link the libc.a library
Hi, i use arm gcc to compile my project for MCU Freescale K60 on debian. On this project, i use uart as printf, so i write custom printf function. When i compile these code, the libc was linked.Here is my compile options:
DEVICE = ' -mcpu=cortex-m4 -mthumb -ffunction-sections -fdata-sections '
CFLAGS = DEVICE + ' -g -Wall -v -nostdinc -mthumb-interwork -D__ASSEMBLY__ -D__FPU_USED -DMK60D10 -DDEBUG '
LFLAGS = DEVICE + ' -nostdlib -nodefaultlibs -nostartfiles ' + ' -Wl,--gc-
I found the libc.a through rtthread-k60.map file, and the option "-imultilib armv7e-m/fpu" was added on compile option.I wan't known how to disable the option imultilib.Could you have some suggests for me?
Tks.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- blackrose
- Solved:
- Last query:
- Last reply: