Skip to content

Instantly share code, notes, and snippets.

@iwadon
Created March 13, 2012 05:28
Show Gist options
  • Select an option

  • Save iwadon/2027008 to your computer and use it in GitHub Desktop.

Select an option

Save iwadon/2027008 to your computer and use it in GitHub Desktop.
diff --git a/configure.py b/configure.py
index 9c9d108..3ceb6fe 100755
--- a/configure.py
+++ b/configure.py
@@ -260,6 +260,8 @@ if options.with_gtest:
gtest_all_incs = '-I%s -I%s' % (path, os.path.join(path, 'include'))
gtest_cflags = '-fvisibility=hidden ' + gtest_all_incs
+ if platform != 'windows':
+ gtest_cflags += " -DGTEST_HAS_RTTI=0"
objs += n.build(built('gtest-all.o'), 'cxx',
os.path.join(path, 'src/gtest-all.cc'),
variables=[('cflags', gtest_cflags)])
@@ -268,6 +270,8 @@ if options.with_gtest:
variables=[('cflags', gtest_cflags)])
test_cflags = cflags + ['-I%s' % os.path.join(path, 'include')]
+ if platform != 'windows':
+ test_cflags += ["-DGTEST_HAS_RTTI=0"]
elif platform == 'windows':
test_libs.extend(['gtest_main.lib', 'gtest.lib'])
else:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment