From patchwork Sat Apr 16 20:14:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 91495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 96E37B6EF7 for ; Sun, 17 Apr 2011 06:15:19 +1000 (EST) Received: (qmail 2107 invoked by alias); 16 Apr 2011 20:15:02 -0000 Received: (qmail 1508 invoked by uid 22791); 16 Apr 2011 20:14:50 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Apr 2011 20:14:36 +0000 Received: from hpaq14.eem.corp.google.com (hpaq14.eem.corp.google.com [172.25.149.14]) by smtp-out.google.com with ESMTP id p3GKEYO7023868; Sat, 16 Apr 2011 13:14:34 -0700 Received: from tobiano.tor.corp.google.com (tobiano.tor.corp.google.com [172.29.41.6]) by hpaq14.eem.corp.google.com with ESMTP id p3GKEWu6009402; Sat, 16 Apr 2011 13:14:33 -0700 Received: by tobiano.tor.corp.google.com (Postfix, from userid 54752) id 2E99DAE18B; Sat, 16 Apr 2011 16:14:32 -0400 (EDT) To: reply@codereview.appspotmail.com, xur@google.com, gcc-patches@gcc.gnu.org Subject: [google] Install additional gcov files (issue4442052) Message-Id: <20110416201432.2E99DAE18B@tobiano.tor.corp.google.com> Date: Sat, 16 Apr 2011 16:14:32 -0400 (EDT) From: dnovillo@google.com (Diego Novillo) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 * Makefile.in (install-leaf): Install gcov-io.h, gcov-iov.h gcov-io.c and libgcov.c to $DESTDIR/$inst_libdir/gcov-src. --- This patch is available for review at http://codereview.appspot.com/4442052 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