newlib: use RIOT dependency system for _GNU_SOURCE instead
This commit is contained in:
parent
79b34a722a
commit
af5760977d
10
Makefile.dep
10
Makefile.dep
@ -8,6 +8,12 @@ OLD_USEPKG := $(sort $(USEPKG))
|
|||||||
# pull dependencies from drivers
|
# pull dependencies from drivers
|
||||||
include $(RIOTBASE)/drivers/Makefile.dep
|
include $(RIOTBASE)/drivers/Makefile.dep
|
||||||
|
|
||||||
|
ifneq (,$(filter cbor_ctime,$(USEMODULE)))
|
||||||
|
ifneq (,$(filter newlib,$(USEMODULE)))
|
||||||
|
USEMODULE += newlib_gnu_source
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter csma_sender,$(USEMODULE)))
|
ifneq (,$(filter csma_sender,$(USEMODULE)))
|
||||||
USEMODULE += random
|
USEMODULE += random
|
||||||
USEMODULE += xtimer
|
USEMODULE += xtimer
|
||||||
@ -381,6 +387,10 @@ ifneq (,$(filter od,$(USEMODULE)))
|
|||||||
USEMODULE += fmt
|
USEMODULE += fmt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter newlib_gnu_source,$(USEMODULE)))
|
||||||
|
USEMODULE += newlib
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||||
USEMODULE += newlib
|
USEMODULE += newlib
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -9,6 +9,10 @@ ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter newlib_gnu_source,$(USEMODULE)))
|
||||||
|
CFLAGS += -D_GNU_SOURCE=1
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq (1,$(USE_NEWLIB_NANO))
|
ifeq (1,$(USE_NEWLIB_NANO))
|
||||||
export LINKFLAGS += -specs=nano.specs
|
export LINKFLAGS += -specs=nano.specs
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -52,6 +52,7 @@ PSEUDOMODULES += netstats_l2
|
|||||||
PSEUDOMODULES += netstats_ipv6
|
PSEUDOMODULES += netstats_ipv6
|
||||||
PSEUDOMODULES += netstats_rpl
|
PSEUDOMODULES += netstats_rpl
|
||||||
PSEUDOMODULES += newlib
|
PSEUDOMODULES += newlib
|
||||||
|
PSEUDOMODULES += newlib_gnu_source
|
||||||
PSEUDOMODULES += newlib_nano
|
PSEUDOMODULES += newlib_nano
|
||||||
PSEUDOMODULES += openthread
|
PSEUDOMODULES += openthread
|
||||||
PSEUDOMODULES += pktqueue
|
PSEUDOMODULES += pktqueue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user