|
@@ -134,16 +134,21 @@ if libcxx_obj_root is not None:
|
|
|
else:
|
|
|
libcxx_obj_root = "/usr"
|
|
|
|
|
|
+# Configure extra compiler flags.
|
|
|
+compile_flags = []
|
|
|
+if getattr(config, 'cxx_has_stdcxx0x_flag', False):
|
|
|
+ compile_flags += ['-std=c++0x']
|
|
|
+
|
|
|
# Configure extra libraries.
|
|
|
libraries = []
|
|
|
if sys.platform == 'darwin':
|
|
|
libraries += ['-lSystem']
|
|
|
if sys.platform == 'linux2':
|
|
|
- libraries += ['-lgcc_eh', '-lsupc++', '-lc', '-lm', '-lgcc_s']
|
|
|
+ libraries += ['-lgcc_eh', '-lsupc++', '-lc', '-lm', '-lrt', '-lgcc_s']
|
|
|
libraries += ['-Wl,-R', libcxx_obj_root + '/lib']
|
|
|
|
|
|
config.test_format = LibcxxTestFormat(cxx_under_test,
|
|
|
- cpp_flags = ['-nostdinc++'] + include_paths,
|
|
|
+ cpp_flags = ['-nostdinc++'] + compile_flags + include_paths,
|
|
|
ld_flags = ['-nodefaultlibs'] + library_paths + ['-lc++'] + libraries)
|
|
|
|
|
|
config.target_triple = None
|