From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17773 invoked by alias); 17 Jan 2014 00:38:24 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 17762 invoked by uid 89); 17 Jan 2014 00:38:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS,URIBL_BLACK autolearn=no version=3.3.2 X-HELO: mail-ie0-f176.google.com Received: from mail-ie0-f176.google.com (HELO mail-ie0-f176.google.com) (209.85.223.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 17 Jan 2014 00:38:22 +0000 Received: by mail-ie0-f176.google.com with SMTP id lx4so4611288iec.7 for ; Thu, 16 Jan 2014 16:38:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=vVrY5EA/wrvfT2L3AbIwmwx7E5msnBkUfrZfS6s0nD8=; b=aM4yX3NUMYWHKM2ZUTvLKO9x6ftCotHyfS2+t/2a+aT0DESacJymnRfZH3MzG4Sj4v G6Vgre06F9put5nwt+dB9u7OftDQEtBDuTMUodYwlt/cv0uPltjX+JPD3i74FNyPgYgi hgDtcHy7DzLNNzq6D3UB0ri5K4VxyfEaxqFrSS8AYPwOek1Q6AVH49HTQ9lSq8KaCrUe LCKt1Foy77L36+EHZvYkXbhcydhUtUfRu0eH50DA0Y2fVg+yg3ntwjk3zGJocLdupRnS bkOxnX62N8FXe7uUzE6c+QdXNoDjAynaYuZP2qGlFALr1wVOwDc/GcK/WPHRCZTMzmCX gKyg== X-Gm-Message-State: ALoCoQnJ4ElidbcCNKZtjX6ydbMmooCD58HD6bvSyKqajAenXqqXSrp7oLrsisojVsbZ3ARqqVZ7xr+FoKGYohHEaDr1VbOH2pFqyofbigRme8UC63wYJTrV+achSt+o5puWCh+EAORB5KUCd1OlgJxXIrJ9cFPmNaVf1Ln5xztAa/jInMPeG0CSdhDCmRZufhbuhIOQVu7Acmwd7FU5pDM6Fb6t5TUiuw== X-Received: by 10.42.33.65 with SMTP id h1mr5365625icd.72.1389919101039; Thu, 16 Jan 2014 16:38:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.148.34 with HTTP; Thu, 16 Jan 2014 16:38:00 -0800 (PST) From: Roland McGrath Date: Fri, 17 Jan 2014 00:38:00 -0000 Message-ID: Subject: [PATCH] gdb: Support install-strip target To: GDB Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-01/txt/msg00662.txt.bz2 This makes gdb support the install-strip target, which all the other binutils subdirs that are automake-driven already support. I just copied the automake-generated logic. OK for trunk and 7.7 branch? Thanks, Roland gdb/ 2014-01-16 Roland McGrath * configure.ac: Call AM_PROG_INSTALL_STRIP. * configure: Regenerate. * aclocal.m4: Regenerate. * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New substituted variables. (install-strip): New target. --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -44,6 +44,8 @@ htmldir = @htmldir@ pdfdir = @pdfdir@ includedir = @includedir@ +install_sh = @install_sh@ + # This can be referenced by `LIBINTL' as computed by # ZW_GNU_GETTEXT_SISTER_DIR. top_builddir = . @@ -56,6 +58,7 @@ LN_S = @LN_S@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ DESTDIR = @@ -66,6 +69,7 @@ RANLIB = @RANLIB@ DLLTOOL = @DLLTOOL@ WINDRES = @WINDRES@ MIG = @MIG@ +STRIP = @STRIP@ XGETTEXT = @XGETTEXT@ GMSGFMT = @GMSGFMT@ @@ -1111,6 +1115,12 @@ install-only: $(CONFIG_INSTALL) fi @$(MAKE) DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do +install-strip: + $(MAKE) $(FLAGS_TO_PASS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install-only + install-python: $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -30,6 +30,7 @@ AC_PROG_CC AC_USE_SYSTEM_EXTENSIONS ACX_LARGEFILE AM_PROG_CC_STDC +AM_PROG_INSTALL_STRIP AC_CONFIG_AUX_DIR(..) AC_CANONICAL_SYSTEM