summaryrefslogtreecommitdiff
path: root/udm
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-06-17 23:48:45 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-06-17 23:48:45 +0300
commit04f73604bd1ae9b7e18e24050bd2dcc9a762c980 (patch)
treebeaaa33c2cf0a8b1238cc8b40548b510274febef /udm
parent522dfdf1bc329e281d40d31f8f969898cd0f4f3d (diff)
Fix build with MinGW
Diffstat (limited to 'udm')
-rw-r--r--udm/source/mkinc/fullcpp.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/udm/source/mkinc/fullcpp.mk b/udm/source/mkinc/fullcpp.mk
index 3452d4bcd43a..5faca9c6cbf4 100644
--- a/udm/source/mkinc/fullcpp.mk
+++ b/udm/source/mkinc/fullcpp.mk
@@ -37,7 +37,9 @@
.IF "$(GUI)"=="WNT"
# RTTI
+.IF "$(COM)"=="MSC"
CFLAGS+= -GR
+.ENDIF
.IF "$(NP_LOCALBUILD)"!=""
@@ -54,7 +56,8 @@ CFLAGS+= -YX"precomp.h" /Fp$(PRJ)$/$(INPATH)$/misc$/$(PCH_NAME).pcd -DNP_LOCALBU
.ENDIF
-.IF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD"
+# Or should we simple check for $(COM)==GCC ?
+.IF "$(OS)"=="LINUX" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(COM)"=="WNTGCC"
CFLAGSCXX+= -frtti
.ENDIF