diff options
author | Evan Martin <martine@danga.com> | 2012-01-12 00:18:37 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-01-12 00:18:37 (GMT) |
commit | 9370f390b6c264f5016754826a5d7315d77542de (patch) | |
tree | 913fe0fd995988ccee70e435f7ca0c28a9b23bd8 /configure.py | |
parent | 6d282206c86aabdcff207dac5e193483161b098a (diff) | |
download | Ninja-9370f390b6c264f5016754826a5d7315d77542de.zip Ninja-9370f390b6c264f5016754826a5d7315d77542de.tar.gz Ninja-9370f390b6c264f5016754826a5d7315d77542de.tar.bz2 |
build gtest with -fvisibility=hidden as well
Fixes a warning on Mac.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.py b/configure.py index b8ff1f5..7a79068 100755 --- a/configure.py +++ b/configure.py @@ -253,12 +253,13 @@ if options.with_gtest: path = options.with_gtest gtest_all_incs = '-I%s -I%s' % (path, os.path.join(path, 'include')) + gtest_cflags = '-fvisibility=hidden ' + gtest_all_incs objs += n.build(built('gtest-all.o'), 'cxx', os.path.join(path, 'src/gtest-all.cc'), - variables=[('cflags', gtest_all_incs)]) + variables=[('cflags', gtest_cflags)]) objs += n.build(built('gtest_main.o'), 'cxx', os.path.join(path, 'src/gtest_main.cc'), - variables=[('cflags', gtest_all_incs)]) + variables=[('cflags', gtest_cflags)]) test_cflags = cflags + ['-I%s' % os.path.join(path, 'include')] else: |