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:
parent
9d736dc4eb
commit
6c54360bae
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user