Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-03-05 20:01:59 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2012-03-05 20:03:27 +0400
commit5ebc05f56018d5ced52e4c41f9e8a92c425253e3 (patch)
treeb14b256df2fbcf5b631751796d82fa66c8fe4871 /configure
parent5062741bd7a8ac6b7713defde62c0b8d3ab23fc8 (diff)
build: disable -fvisibility=hidden if gcc < 4.0.0
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 27ef84e672c..00a8ed0d6bc 100755
--- a/configure
+++ b/configure
@@ -215,9 +215,9 @@ def configure_node(o):
o['variables']['strict_aliasing'] = b(
'clang' in CC or gcc_version() >= [False, 4, 6, 0])
- # TODO move to node.gyp
- if sys.platform == 'sunos5':
- o['variables']['visibility'] = '' # FIXME -fvisibility=hidden, should be a gcc check
+ # clang has always supported -fvisibility=hidden, right?
+ if 'clang' not in CC and gcc_version() < [False, 4, 0, 0]:
+ o['variables']['visibility'] = ''
def configure_libz(o):