mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
build: disable -fvisibility=hidden if gcc < 4.0.0
This commit is contained in:
parent
5062741bd7
commit
5ebc05f560
6
configure
vendored
6
configure
vendored
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user