aboutsummaryrefslogtreecommitdiff
path: root/libgcc/Makefile.in
diff options
context:
space:
mode:
authorRasmus Villemoes <rv@rasmusvillemoes.dk>2018-06-27 12:04:25 +0200
committerRasmus Villemoes <villemoes@gcc.gnu.org>2018-06-27 10:04:25 +0000
commit1765b0231029c0479ddcf5d54e8f4882c5feda94 (patch)
tree12e1333e335da0d5357ee4418e40356b5c9ab765 /libgcc/Makefile.in
parented4e2a178609194673c81a038034e16832a0a9be (diff)
downloadgcc-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 'libgcc/Makefile.in')
-rw-r--r--libgcc/Makefile.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
index dd8cee9..b7f2055 100644
--- a/libgcc/Makefile.in
+++ b/libgcc/Makefile.in
@@ -36,6 +36,7 @@ SHELL = @SHELL@
cpu_type = @cpu_type@
enable_shared = @enable_shared@
+enable_gcov = @enable_gcov@
double_type_size = @double_type_size@
long_double_type_size = @long_double_type_size@
decimal_float = @decimal_float@
@@ -941,7 +942,10 @@ libgcc.a libgcov.a libunwind.a libgcc_eh.a:
$(RANLIB) $@
-all: libgcc.a libgcov.a
+all: libgcc.a
+ifeq ($(enable_gcov),yes)
+all: libgcov.a
+endif
ifneq ($(LIBUNWIND),)
all: libunwind.a
@@ -1164,9 +1168,11 @@ install-leaf: $(install-shared) $(install-libunwind)
$(INSTALL_DATA) libgcc.a $(DESTDIR)$(inst_libdir)/
chmod 644 $(DESTDIR)$(inst_libdir)/libgcc.a
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc.a
+ifeq ($(enable_libgcov),yes)
$(INSTALL_DATA) libgcov.a $(DESTDIR)$(inst_libdir)/
chmod 644 $(DESTDIR)$(inst_libdir)/libgcov.a
$(RANLIB) $(DESTDIR)$(inst_libdir)/libgcov.a
+endif
parts="$(INSTALL_PARTS)"; \
for file in $$parts; do \