Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
build: disable -fvisibility=hidden if gcc < 4.0.0
  • Loading branch information
bnoordhuis committed Mar 5, 2012
1 parent 5062741 commit 5ebc05f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configure
Expand Up @@ -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):
Expand Down

0 comments on commit 5ebc05f

Please sign in to comment.