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

board/spark-core: enabled C++

This commit is contained in:
Hauke Petersen 2014-11-18 18:15:51 +01:00 committed by Hauke Petersen
parent 62d53f91b4
commit 4e7ed0b5eb
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
FEATURES_PROVIDED += cpp

View File

@ -10,6 +10,7 @@ export BINFILE = $(patsubst %.elf,%.bin,$(ELFFILE))
# define tools used for building the project
export PREFIX = arm-none-eabi-
export CC = $(PREFIX)gcc
export CXX = $(PREFIX)g++
export AR = $(PREFIX)ar
export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc
@ -34,6 +35,10 @@ export FFLAGS = $(HEXFILE)
export DEBUGGER_FLAGS = $(RIOTBOARD)/$(BOARD)/dist/gdb.conf $(ELFFILE)
export TERMFLAGS = -p $(PORT)
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
export CXXUWFLAGS +=
export CXXEXFLAGS +=
# use the nano-specs of the NewLib when available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
export LINKFLAGS += -specs=nano.specs -lc -lnosys