From 2bcee2decfbf21414a28b4f219a7d86fb2f027d5 Mon Sep 17 00:00:00 2001 From: regehr Date: Sat, 16 Feb 2008 19:49:05 +0000 Subject: [PATCH] pass -safe flag on to ncc --- support/make/msp/msp.rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/support/make/msp/msp.rules b/support/make/msp/msp.rules index 73027a0d..88124647 100644 --- a/support/make/msp/msp.rules +++ b/support/make/msp/msp.rules @@ -22,6 +22,12 @@ define MSP_HELP endef HELP += $(MSP_HELP) +ifdef MAKE_DEPUTY_FLAG + NCC_SAFE_TINYOS_FLAG = -safe +else + NCC_SAFE_TINYOS_FLAG = +endif + #MSP_NESC_TARGET ?= msp430 #MSP_GCC ?= msp430-gcc #MSP_MCU ?= msp430x149 @@ -89,7 +95,7 @@ exe: exe0 bytes FORCE exe0: builddir $(BUILD_EXTRA_DEPS) FORCE @echo " compiling $(COMPONENT) to a $(PLATFORM) binary" - $(NCC) -o $(MAIN_EXE) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS) + $(NCC) -o $(MAIN_EXE) $(NCC_SAFE_TINYOS_FLAG) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS) ifdef WIRING_CHECK_FILE @nescc-wiring $(WIRING_CHECK_FILE) endif -- 2.39.2