makefile: Pass STRIPFLAGS_EXTRA to strip.

Expected to be set on command line, with the idea being that for different
targets, there're different smartass ABIs which strive to put unneeded
sections into executables, etc., so let people have flexible way to
strip that.

The option name is similar to previously introduced CLFAGS_EXTRA &
LDFLAGS_EXTRA.
This commit is contained in:
Paul Sokolovsky 2014-06-20 20:25:35 +03:00
parent 17a49431d4
commit 0fc7efb663
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ $(PROG): $(OBJ)
$(ECHO) "LINK $@" $(ECHO) "LINK $@"
$(Q)$(CC) -o $@ $(OBJ) $(LIB) $(LDFLAGS) $(Q)$(CC) -o $@ $(OBJ) $(LIB) $(LDFLAGS)
ifndef DEBUG ifndef DEBUG
$(Q)$(STRIP) $(PROG) $(Q)$(STRIP) $(STRIPFLAGS_EXTRA) $(PROG)
endif endif
$(Q)$(SIZE) $(PROG) $(Q)$(SIZE) $(PROG)