Define __STDC_FORMAT_MACROS for old libc versions
The pre-C++11 glibc in e.g. Redhat 6 needs this symbol for the
cinttypes include.
Fixes
@@ -166,6 +166,9 @@ _ccx_warns = _base_warns + ["-Wnon-virtual-dtor", "-Woverloaded-virtual"]
_extra_cc_compile_args = ["-std=gnu99"] + _cc_warns
_extra_cxx_compile_args = ["-std=c++11"] + _ccx_warns
+# Make PRI* format macros available with C++11 compiler but older libc, e.g. on RHEL6.
+_extra_cxx_compile_args += ["-D__STDC_FORMAT_MACROS"]
+
def _get_common_lib_ext(include_dir, share_lib_dir, sim_define):
"""
Defines common libraries.
