don't use pthread option under cygwin

This commit is contained in:
Craig Dowell
2009-03-27 09:58:04 -07:00
parent 49056cac7d
commit 4d1839e95f

View File

@@ -11,7 +11,7 @@ def configure(conf):
# Check for POSIX threads
test_env = conf.env.copy()
if Options.platform != 'darwin':
if Options.platform != 'darwin' and Options.platform != 'cygwin':
test_env.append_value('LINKFLAGS', '-pthread')
test_env.append_value('CXXFLAGS', '-pthread')
test_env.append_value('CCFLAGS', '-pthread')
@@ -30,7 +30,7 @@ int main ()
mandatory=False)
if have_pthread:
# darwin accepts -pthread but prints a warning saying it is ignored
if Options.platform != 'darwin':
if Options.platform != 'darwin' and Options.platform != 'cygwin':
conf.env['CXXFLAGS_PTHREAD'] = '-pthread'
conf.env['CCFLAGS_PTHREAD'] = '-pthread'
conf.env['LINKFLAGS_PTHREAD'] = '-pthread'