From: regehr Date: Sat, 16 Feb 2008 19:49:05 +0000 (+0000) Subject: pass -safe flag on to ncc X-Git-Tag: release_tinyos_2_1_0_0~531 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=2bcee2decfbf21414a28b4f219a7d86fb2f027d5 pass -safe flag on to ncc --- 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