make install-strip with binutils

Ian Lance Taylor iant@google.com
Sat Oct 23 16:30:00 GMT 2010


NightStrike <nightstrike@gmail.com> writes:

> On Sat, Oct 23, 2010 at 5:59 AM, Ralf Wildenhues <Ralf.Wildenhues@gmx.de> wrote:
>> Hello,
>>
>> * NightStrike wrote on Fri, Oct 22, 2010 at 06:33:17PM CEST:
>>> I noticed that there is no install-strip target in the binutils
>>> Makefile.  How do you install stripped versions of the binutils
>>> package?  What's the official approved way to do this, ideally without
>>> resorting to manually running strip?
>>
>> I don't think there is an official approved way yet.
>
> Isn't install-strip a required make target for gnu programs?

Yes.  We are out of GNU standard compliance there.

>> 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.

Ian



More information about the Binutils mailing list