1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-21 20:43:50 +01:00

Merge pull request #2032 from haukepetersen/fix_sparkcore_cpp

board/spark-core: enabled C++
This commit is contained in:
Thomas Eichinger 2014-11-25 20:53:34 +01:00
commit e087389dd8
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