- Add a section describing File and Directory Nodes and some of their
attributes and methods.
+ - Have ParseConfig() add a returned -pthread flag to both $CCFLAGS
+ and $LINKFLAGS.
+
From Simon Perkins:
- Fix a bug introduced in building shared libraries under MinGW.
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)
def read(self):
return "-I/usr/include/fum -Ibar -X\n" + \
"-L/usr/fax -Lfoo -lxxx " + \
- "-Wa,-as -Wl,-link -Wp,-cpp abc"
+ "-Wa,-as -Wl,-link -Wp,-cpp abc -pthread"
return fake_file()
try:
os.popen = my_popen
assert env['CPPFLAGS'] == ['', '-Wp,-cpp'], env['CPPFLAGS']
assert env['LIBPATH'] == ['list', '/usr/fax', 'foo'], env['LIBPATH']
assert env['LIBS'] == ['xxx'], env['LIBS']
- assert env['LINKFLAGS'] == ['', '-Wl,-link'], env['LINKFLAGS']
- assert env['CCFLAGS'] == ['', '-X'], env['CCFLAGS']
+ assert env['LINKFLAGS'] == ['', '-Wl,-link', '-pthread'], env['LINKFLAGS']
+ assert env['CCFLAGS'] == ['', '-X', '-pthread'], env['CCFLAGS']
finally:
os.popen = orig_popen