1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles: Don't link libnosys for mips and put back -fdata-sections

This commit is contained in:
Neil Jones 2017-04-07 15:28:52 +01:00
parent 9d736dc4eb
commit 6c54360bae
2 changed files with 6 additions and 3 deletions

View File

@ -34,8 +34,7 @@ endif
# Otherwise we get an error about a missing declaration of strnlen in some parts.
export CFLAGS += -std=gnu99
export CFLAGS_CPU = -EL -mabi=$(ABI)
# Why not -fdata-sections?? /JN
export CFLAGS_LINK = -ffunction-sections -fno-builtin -fshort-enums #-fdata-sections
export CFLAGS_LINK = -ffunction-sections -fno-builtin -fshort-enums -fdata-sections
export CFLAGS_DBG = -g3
export CFLAGS_OPT = -Os

View File

@ -13,7 +13,11 @@ ifeq (1,$(USE_NEWLIB_NANO))
export LINKFLAGS += -specs=nano.specs
endif
export LINKFLAGS += -lc -lnosys
ifeq ($(TARGET_ARCH),mips-mti-elf)
export LINKFLAGS += -lc
else
export LINKFLAGS += -lc -lnosys
endif
# Search for Newlib include directories