From c30f108c7c4050474b24cfc63e67720b6b1b38c5 Mon Sep 17 00:00:00 2001 From: scipio Date: Sat, 21 Apr 2007 07:00:30 +0000 Subject: [PATCH] Better support for windows compilation. --- support/make/sim.extra | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/support/make/sim.extra b/support/make/sim.extra index c1838482..2a17df0e 100644 --- a/support/make/sim.extra +++ b/support/make/sim.extra @@ -7,7 +7,7 @@ OPTFLAGS = -g -O0 LIBS = -lm -lstdc++ PFLAGS += -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) WFLAGS = -Wno-nesc-data-race -PYTHON_VERSION=2.3 +PYTHON_VERSION=2.5 BUILDDIR = simbuild/$(PLATFORM) CFILE = $(BUILDDIR)/sim.c @@ -30,10 +30,10 @@ ifeq ($(findstring cygwin, $(OSTYPE)),cygwin) PLATFORM_LIB_FLAGS = -L/usr/lib/python$(PYTHON_VERSION)/config -L/$(PYDIR)/config -lstdc++ -lpython$(PYTHON_VERSION) else ifeq ($(OS), Windows_NT) # Some TinyOS installs are like this - PLATFORM_FLAGS=-DUSE_DL_IMPORT -fpic + PLATFORM_FLAGS=-DUSE_DL_IMPORT -fpic SHARED_OBJECT=_TOSSIM.dll PLATFORM_BUILD_FLAGS= -fpic -W1,--enabled-auto-image-base - PLATFORM_LIB_FLAGS = -L/usr/lib/python$(PYTHON_VERSION)/config -L/$(PYDIR)/config -lstdc++ -lpython$(PYTHON_VERSION) + PLATFORM_LIB_FLAGS =-shared -L/usr/lib/python$(PYTHON_VERSION)/config -L/$(PYDIR)/config -lstdc++ -lpython$(PYTHON_VERSION) else ifeq ($(findstring darwin, $(OSTYPE)), darwin) PLATFORM_FLAGS=-fPIC -- 2.39.2