summaryrefslogtreecommitdiff
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
commit49c7438bdf3c896ffd474cacbb9e588690ea2da6 (patch)
tree713803f179fcfeef17babbcda9b1ca0753a7682c
parent33f5edc31b9c8ed7203465186aa2bdefd62ba2a4 (diff)
Fix build with MinGW
-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 3452d4bc..5faca9c6 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