]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - support/make/sim.extra
Fix the issue with tos-deluge not timing out properly.
[tinyos-2.x.git] / support / make / sim.extra
index 13ab0516d46dee7b2606a12a51478cb164e2a0bf..8e6e92c5196a4fbb611bb37cd98a30cbb5854c0c 100644 (file)
@@ -1,11 +1,11 @@
 #-*-Makefile-*- vim:syntax=make
 #$Id$
 
-GCC=gcc
+export GCC=gcc
 GPP=g++
 OPTFLAGS = -g -O0
 LIBS = -lm -lstdc++ 
-PFLAGS += -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)  
+PFLAGS += -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=$(GCC)
 WFLAGS = -Wno-nesc-data-race
 PYTHON_VERSION=2.5
 
@@ -50,7 +50,7 @@ endif
 endif
 endif 
 ifdef SIM_DARWIN
-  PLATFORM_FLAGS=-fPIC
+  PLATFORM_FLAGS=-fPIC -D_FORTIFY_SOURCE=0
   PLATFORM_CC_FLAGS=-bundle
   SHARED_OBJECT=_TOSSIMmodule.so
   PLATFORM_BUILD_FLAGS=-flat_namespace -undefined suppress