This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[google] Install additional gcov files (issue4442052)


I'm committing this patch from Rong Xu.  These added files are used
for FDO kernel builds.

Rong, could you please provide more details?  Will you be submitting
this patch to trunk?

Tested on x86_64.  Committed to google/main branch.

Thanks.  Diego.

2011-04-15  Rong Xu  <xur@google.com>
    
    	* Makefile.in (install-leaf): Install gcov-io.h, gcov-iov.h
    	gcov-io.c and libgcov.c to $DESTDIR/$inst_libdir/gcov-src.

diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
index 7e2ab93..3a3c936 100644
--- a/libgcc/Makefile.in
+++ b/libgcc/Makefile.in
@@ -978,6 +978,18 @@ install-leaf: $(install-shared) $(install-libunwind)
 	  esac;							\
 	done
 
+	if [ "$(MULTIDIR)" == "." ]; then                       \
+	  gcov_src_dest="$(DESTDIR)$(inst_libdir)/gcov-src";    \
+	  $(mkinstalldirs) $$gcov_src_dest;                     \
+	  cp ../../gcc/gcov-iov.h $$gcov_src_dest;              \
+	  cp $(srcdir)/../gcc/gcov-io.h $$gcov_src_dest;        \
+	  cp $(srcdir)/../gcc/gcov-io.c $$gcov_src_dest;        \
+	  cp $(srcdir)/../gcc/libgcov.c $$gcov_src_dest;        \
+	  chmod 644 $$gcov_src_dest/gcov-iov.h                  \
+	    $$gcov_src_dest/gcov-io.h $$gcov_src_dest/gcov-io.c \
+	    $$gcov_src_dest/libgcov.c;                          \
+	fi
+
 install: install-leaf
 	@: $(MAKE) ; $(MULTIDO) $(FLAGS_TO_PASS) multi-do DO=install
 


--
This patch is available for review at http://codereview.appspot.com/4442052


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]