add support for --disable-gcov

Programming / Compilers / GCC - villemoes [138bc75d-0d04-0410-961f-82ee72b054a4] - 27 June 2018 10:04 EDT

For some targets (in my case VxWorks 5.5), libgcov does not compile due to missing functions and macros such as getpid() and F_OK.

Incidentally, gcc/Makefile.in already contains comments such as

# Install gcov if it was compiled.

but there is no logic in place to actually allow gcov to not be compiled.

So add an option for disabling build and install of libgcov and the related host tools.

bab25aa442c add support for --disable-gcov
gcc/ChangeLog | 7 +++++++
gcc/Makefile.in | 6 ++++--
gcc/configure | 16 ++++++++++++++--
gcc/configure.ac | 5 +++++
gcc/doc/install.texi | 4 ++++
libgcc/ChangeLog | 6 ++++++
libgcc/Makefile.in | 8 +++++++-
libgcc/configure | 12 ++++++++++++
libgcc/configure.ac | 5 +++++
9 files changed, 64 insertions(+), 5 deletions(-)

Upstream: gcc.gnu.org


  • Share