diff options
author | Luis Lavena <luislavena@gmail.com> | 2011-12-05 15:08:47 (GMT) |
---|---|---|
committer | Luis Lavena <luislavena@gmail.com> | 2011-12-05 15:08:47 (GMT) |
commit | 47b354129a2bb4d9a882914e228aa25f33a1d0e1 (patch) | |
tree | 8bb50b8ff6fb03cdcc2d13770e8eb0ee8f44f940 /configure.py | |
parent | 94b48447792a2908305c56db5e0f293df069e474 (diff) | |
download | Ninja-47b354129a2bb4d9a882914e228aa25f33a1d0e1.zip Ninja-47b354129a2bb4d9a882914e228aa25f33a1d0e1.tar.gz Ninja-47b354129a2bb4d9a882914e228aa25f33a1d0e1.tar.bz2 |
visibility=hidden should not be used for Windows
While GCC 4.x supports the usage of -fvisibility=hidden and the related
pragmas, usage of it under MinGW is a noop and should not be used.
Instead, __declspec(dllexport/dllimport) should be used instead to
indicate exportable functions.
Since Ninja builds a static library, no functions are exported and
visibility, at least under MinGW, is not an issue.
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.py b/configure.py index 97caec0..e9b37b2 100755 --- a/configure.py +++ b/configure.py @@ -82,6 +82,7 @@ ldflags = ['-L$builddir'] libs = [] if platform == 'mingw': + cflags.remove('-fvisibility=hidden'); cflags.append('-Igtest-1.6.0/include') ldflags.append('-Lgtest-1.6.0/lib/.libs') ldflags.extend(['-static-libgcc', '-static-libstdc++']) |