From patchwork Fri Jan 24 14:22:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Terekhov, Mikhail via Gdb-patches" X-Patchwork-Id: 37530 Received: (qmail 88370 invoked by alias); 24 Jan 2020 14:22:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 88360 invoked by uid 89); 24 Jan 2020 14:22:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=H*x:20100101, H*x:Firefox, H*UA:Firefox, H*x:YMailNorrin X-HELO: sonic307-54.consmr.mail.ir2.yahoo.com Received: from sonic307-54.consmr.mail.ir2.yahoo.com (HELO sonic307-54.consmr.mail.ir2.yahoo.com) (87.248.110.31) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Jan 2020 14:22:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1579875747; bh=TEyAJfTvCCaBDAapI7hxpaVN7DSCE98pxHMMc45cLMs=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject; b=GEumCNDmsxfTb1fMkS7FrvAzcyqEol4gBvphp9faf48yiE+QWSxMCjQr7C3U+906B1tNF/p0Vem1Nd0zrbhBM/KrZO+9Q4wkcqsAOfqX8dDsBkxI2w2WWRZryLelGFdWNEaueQsHJp0hLN/fHFhiQTyUpzDRxnguiGxUsYKofnsiiLCo6NbL10fcPe7szRpp8kRRvEO01hK+rc5yKLTOmumAJzubhKLI8MiAqOqPXKYNxf/y/gsf6xYGfCwBa84hFbH7m4ZFjdwLOpRHm5W/oFHc9Rlx6ufNvXEvenYo66gl/lSmkL1dQSYCeafFGYuWkCtt38Uaq+pbBigTnZJlow== Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Fri, 24 Jan 2020 14:22:27 +0000 Date: Fri, 24 Jan 2020 14:22:22 +0000 (UTC) X-Patchwork-Original-From: "Hannes Domani via gdb-patches" From: "Terekhov, Mikhail via Gdb-patches" Reply-To: Hannes Domani To: Gdb-patches Message-ID: <334218650.28135138.1579875742146@mail.yahoo.com> In-Reply-To: <87a76dsurs.fsf@tromey.com> References: <87d0bf45up.fsf@tromey.com> <1a97e456-8dc8-48bb-20d0-ce8b746c8066@simark.ca> <87a76dsurs.fsf@tromey.com> Subject: Re: [PATCH] Move gdbserver to top level MIME-Version: 1.0 Content-Length: 2484 X-IsSubscribed: yes Am Donnerstag, 23. Januar 2020, 22:55:20 MEZ hat Tom Tromey Folgendes geschrieben: > I think I will wait a little while longer before pushing. make install-strip doesn't work in gdbserver (it worked before indirectly when called from within gdb). I made it work again with these changes: From a3cc5583ca738daa3fdb5805d0c7ab0734d28f41 Mon Sep 17 00:00:00 2001 From: Hannes Domani Date: Fri, 24 Jan 2020 15:03:14 +0100 Subject: [PATCH] gdbserver install-strip ---  gdbserver/Makefile.in  | 10 ++++++++++  gdbserver/configure.ac |  1 +  2 files changed, 11 insertions(+) -- 2.15.1.windows.2 diff --git a/gdbserver/Makefile.in b/gdbserver/Makefile.in index 902d54cfe5..4f9196227c 100644 --- a/gdbserver/Makefile.in +++ b/gdbserver/Makefile.in @@ -45,11 +45,14 @@ htmldir = $(prefix)/html  includedir = @includedir@  CONFIG_SRC_SUBDIR = @CONFIG_SRC_SUBDIR@   +install_sh = @install_sh@ +  SHELL = @SHELL@  EXEEXT = @EXEEXT@    INSTALL = @INSTALL@  INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@  INSTALL_DATA = @INSTALL_DATA@  RANLIB = @RANLIB@   @@ -58,6 +61,7 @@ CXX = @CXX@  CXX_DIALECT = @CXX_DIALECT@  AR = @AR@  AR_FLAGS = rc +STRIP = @STRIP@    # Dependency tracking information.  DEPMODE = @CCDEPMODE@ @@ -394,6 +398,12 @@ install-only:      # in libiberty.      @$(MAKE) $(FLAGS_TO_PASS) DO=install "DODIRS=$(SUBDIRS)" 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 +  uninstall: force      n=`echo gdbserver | sed '$(program_transform_name)'`; \      if [ x$$n = x ]; then n=gdbserver; else true; fi; \ diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac index 24b832b90e..b7ed8050fc 100644 --- a/gdbserver/configure.ac +++ b/gdbserver/configure.ac @@ -27,6 +27,7 @@ AC_PROG_CC  AC_PROG_CXX  AC_GNU_SOURCE  AC_SYS_LARGEFILE +AM_PROG_INSTALL_STRIP    AC_CANONICAL_SYSTEM Â