summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Environment.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-08-16 14:43:56 (GMT)
committerSteven Knight <knight@baldmt.com>2004-08-16 14:43:56 (GMT)
commite1dd4cf095ba4e90da77bd69bd7c738937c36585 (patch)
tree786fbe3c66b0308f789a5f7e6f39aab96a0c7e45 /src/engine/SCons/Environment.py
parentb4c0313f3920d85f653456c0ad877e8c868c207a (diff)
downloadSCons-e1dd4cf095ba4e90da77bd69bd7c738937c36585.zip
SCons-e1dd4cf095ba4e90da77bd69bd7c738937c36585.tar.gz
SCons-e1dd4cf095ba4e90da77bd69bd7c738937c36585.tar.bz2
Have the default ParseConfig() function add -pthread to both and . (Gary Oberbrunner)
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r--src/engine/SCons/Environment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py
index fc4dba0..32fa1e6 100644
--- a/src/engine/SCons/Environment.py
+++ b/src/engine/SCons/Environment.py
@@ -749,6 +749,9 @@ class Base:
dict['LINKFLAGS'].append(arg)
elif arg[:4] == '-Wp,':
dict['CPPFLAGS'].append(arg)
+ elif arg == '-pthread':
+ dict['CCFLAGS'].append(arg)
+ dict['LINKFLAGS'].append(arg)
else:
dict['CCFLAGS'].append(arg)
apply(env.Append, (), dict)