Build everything with -pthread
This commit is contained in:
+2
-2
@@ -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':
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user