Closes #1833.
- CentOS/RHEL 6 is no longer supported
- Vestiges of Qt4 support have been removed
- C++11 support is now required of the C++ compiler used to build Graphviz
+- C99 support is now required of the C compiler used to build Graphviz
### Fixed
- memory leak in label construction
# =========================== Compiler configuration ===========================
+set(CMAKE_C_STANDARD 99)
+set(CMAKE_C_STANDARD_REQUIRED ON)
+
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
AM_PROG_CC_C_O
AC_PROG_CC_C99
+if test "x$ac_cv_prog_cc_c99" = "xno"; then
+ AC_MSG_ERROR([C compiler does not support C99])
+fi
AC_PROG_CXX
AX_CXX_COMPILE_STDCXX_11(noext,mandatory)
AC_PROG_OBJC
subprocess.check_call([cc, filepath, '-Fe:', exe, '-nologo',
rt_lib_option, '-link'] + ['{}.lib'.format(l) for l in libs])
else:
- subprocess.check_call([cc, '-o', exe, filepath]
+ subprocess.check_call([cc, '-std=c99', '-o', exe, filepath]
+ ['-l{}'.format(l) for l in libs])
# FIXME: Remove skip of execution of neatopack.c example when
rt_lib_option, '-link', 'cgraph.lib', 'gvc.lib'])
else:
cc = os.environ.get('CC', 'cc')
- subprocess.check_call([cc, c_src, '-o', exe, '-lcgraph', '-lgvc'])
+ subprocess.check_call([cc, '-std=c99', c_src, '-o', exe, '-lcgraph',
+ '-lgvc'])
# find our co-located dot input
dot = os.path.abspath(os.path.join(os.path.dirname(__file__), '1767.dot'))