Thread (17 messages) flat view 17 messages, 6 authors, 2016-06-15

Re: git binary size...

From: "H. Peter Anvin" <hpa@zytor.com>
Date: 2016-06-15 22:42:16

Andreas Ericsson wrote:
H. Peter Anvin wrote:
quoted
I disagree with both of these.  Most users will not install via "make 
install", but rather via a package manager.  Package managers have 
long since dealt with this problem; in the case of rpm, the debug 
information is stripped off into a separate package.  Having "make 
install" strip would break that -- although defining $(STRIP) makes it 
a bit easier to deal with (STRIP=: make install).
Fair point. So how about a strip: target for just stripping the binaries 
in the directory? That way one can do "make strip install", but 
everything else will work as always. Better yet, make it

strip:
    strip $(STRIP_OPTS) $(PROGRAMS)

so Linus can set STRIP_OPTS=--strip-debug and everybody's happy.
The proper way to do this is:

strip:
	$(STRIP) $(STRIP_OPTS) $(PROGRAMS)

For "strip", this is frequently omitted, though.  Since "strip" is 
architecture-dependent, though, this is necessary for cross-compilation.

	-hpa
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help