From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20563 invoked by alias); 24 Oct 2010 04:03:58 -0000 Received: (qmail 20555 invoked by uid 22791); 24 Oct 2010 04:03:57 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from eddie.linux-mips.org (HELO cvs.linux-mips.org) (78.24.191.182) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 04:03:50 +0000 Received: from localhost.localdomain ([127.0.0.1]:36326 "EHLO localhost.localdomain" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1490981Ab0JXEDr (ORCPT ); Sun, 24 Oct 2010 06:03:47 +0200 Date: Sun, 24 Oct 2010 04:03:00 -0000 From: "Maciej W. Rozycki" To: Ian Lance Taylor cc: NightStrike , Ralf Wildenhues , binutils Subject: Re: make install-strip with binutils In-Reply-To: Message-ID: References: <20101023095951.GN2183@gmx.de> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00394.txt.bz2 On Sat, 23 Oct 2010, Ian Lance Taylor wrote: > >> It should be > >> possible to add forwarders to toplevel Makefile.tpl and Makefile.def, > >> and add targets to the non-automake-governed sub directories of the > >> combined GCC/src tree, but you'd need to take care to pass the right > >> strip program (for host or for target, possibly the in-tree strip). > > > > I.... have no idea how to do that :) > > Edit the top level Makefile.tpl and Makefile.def files. Copy a similar > target--say, install-pdf. Run "autogen Makefile.def". Test. Automake should be doing The Right Thing wrt cross-stripping binaries. As binutils do not build any target binaries that should be enough, but our top level is meant to be used with more complex setups and should be capable of handling GCC and src trees combined. Therefore as Ralf mentioned, support for using in-tree strip may be needed; I reckon the scripts are already capable of doing this for other tools so things may be as easy as copying & pasting the existing bits. Then again, maybe not. ;) Maciej