Merge pull request #842 from nico/solaris

Fix building on Solaris.
This commit is contained in:
Nico Weber 2014-11-13 17:57:53 -08:00
commit 4daf9c9e83
2 changed files with 2 additions and 5 deletions

View File

@ -159,7 +159,7 @@ libs = []
if platform.is_mingw():
cflags.remove('-fvisibility=hidden');
ldflags.append('-static')
elif platform.is_sunos5():
elif platform.is_solaris():
cflags.remove('-fvisibility=hidden')
elif platform.is_msvc():
pass

View File

@ -35,7 +35,7 @@ class Platform(object):
self._platform = 'freebsd'
elif self._platform.startswith('openbsd'):
self._platform = 'openbsd'
elif self._platform.startswith('solaris'):
elif self._platform.startswith('solaris') or self._platform == 'sunos5':
self._platform = 'solaris'
elif self._platform.startswith('mingw'):
self._platform = 'mingw'
@ -78,9 +78,6 @@ class Platform(object):
def is_openbsd(self):
return self._platform == 'openbsd'
def is_sunos5(self):
return self._platform == 'sunos5'
def is_bitrig(self):
return self._platform == 'bitrig'