--- a/sbsv2/raptor/lib/flm/tools2exe.flm Tue Mar 30 20:25:06 2010 +0100
+++ b/sbsv2/raptor/lib/flm/tools2exe.flm Wed Apr 07 12:26:04 2010 +0100
@@ -1,4 +1,4 @@
-# Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+# Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the License "Eclipse Public License v1.0"
@@ -16,11 +16,18 @@
#
## Outputs - externally relevant targets that this FLM generates
-ifeq ($(OSTYPE),cygwin)
+ifeq ($(filter win,$(HOSTPLATFORM)),win)
SYSTEMLIBS:=$(LIBS.WIN32)
else
+ifneq ($(TOOLS2WIN32),)
+# Build win32 tools in Linux
+SYSTEMLIBS:=$(LIBS.WIN32)
+else
+# Build linux tools in Linux
SYSTEMLIBS:=$(LIBS.LINUX)
endif
+endif
+
EXETARGET:=$(RELEASEPATH)/$(TARGET)$(DOTEXE)