summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolkit/components/protobuf/moz.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/components/protobuf/moz.build b/toolkit/components/protobuf/moz.build
index 7d1f9804d1..9c417ac718 100644
--- a/toolkit/components/protobuf/moz.build
+++ b/toolkit/components/protobuf/moz.build
@@ -136,3 +136,7 @@ if CONFIG['MOZ_USE_PTHREADS']:
DEFINES['HAVE_ZLIB'] = True
CXXFLAGS += CONFIG['TK_CFLAGS']
+
+# protobuf wants RTTI on gcc
+if CONFIG['GNU_CXX']:
+ CXXFLAGS += ['-frtti']