Build everything with -pthread

This commit is contained in:
Nils O. Selåsdal
2012-11-12 21:28:32 +01:00
parent ac83766abc
commit 04ed3d7017
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -54,8 +54,8 @@ env = Environment(tools = ['default', 'textfile'])
env.AddMethod(InstallPerm)
Export('env', 'build_type', 'prefix', 'version_info', 'test_xml')
env.Append(CFLAGS = ['-Wall', '-Wextra', '-pipe', '-ggdb'])
env.Append(LINKFLAGS = ['-O2'])
env.Append(CFLAGS = ['-Wall', '-Wextra', '-pipe', '-ggdb', '-pthread'])
env.Append(LINKFLAGS = ['-O2', '-pthread'])
env.Append(CPPDEFINES = ['_FILE_OFFSET_BITS=64'])
if build_type == 'release':
-1
View File
@@ -6,7 +6,6 @@ ucore_env = env.Clone()
#substitute @version_xx@ strings
subst_version_info = dict(('@' + key + '@', version_info[key]) for key in version_info)
ucore_env.Substfile('ucore_version.c.in', SUBST_DICT = subst_version_info)
ucore_env.Append(CFLAGS = ['-pthread'])
sources = ucore_env.Glob('*.c')
headers = ucore_env.Glob('*.h')