diff options
author | Rasmus Villemoes <rv@rasmusvillemoes.dk> | 2018-06-27 12:04:25 +0200 |
---|---|---|
committer | Rasmus Villemoes <villemoes@gcc.gnu.org> | 2018-06-27 10:04:25 +0000 |
commit | 1765b0231029c0479ddcf5d54e8f4882c5feda94 (patch) | |
tree | 12e1333e335da0d5357ee4418e40356b5c9ab765 /gcc/Makefile.in | |
parent | ed4e2a178609194673c81a038034e16832a0a9be (diff) | |
download | gcc-1765b0231029c0479ddcf5d54e8f4882c5feda94.zip gcc-1765b0231029c0479ddcf5d54e8f4882c5feda94.tar.gz gcc-1765b0231029c0479ddcf5d54e8f4882c5feda94.tar.bz2 |
add support for --disable-gcov
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.
From-SVN: r262180
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index d8f3e88..1f38cac 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -137,8 +137,10 @@ SUBDIRS =@subdirs@ build # Selection of languages to be made. CONFIG_LANGUAGES = @all_selected_languages@ -LANGUAGES = c gcov$(exeext) gcov-dump$(exeext) gcov-tool$(exeext) \ - $(CONFIG_LANGUAGES) +LANGUAGES = c $(CONFIG_LANGUAGES) +ifeq (@enable_gcov@,yes) +LANGUAGES += gcov$(exeext) gcov-dump$(exeext) gcov-tool$(exeext) +endif # Default values for variables overridden in Makefile fragments. # CFLAGS is for the user to override to, e.g., do a cross build with -O2. |