git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] make: add INSTALL_STRIP variable

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 23, 2021, 15:55 UTC
Message-ID
<xmqq5yvwrw8s.fsf@gitster.g>
In-Reply-To
<YSBhPdK8jYIQUNhP@danh.dev>
Đoàn Trần Công Danh  <congdanhqx@gmail.com> writes:
Show 12 quoted lines
> In that case, we can use this construct (since we depends on GNU Make,
> anyway).
>
> ---- 8< ------
> ifneq ($(filter install,$(MAKECMDGOALS)),)
> ifneq ($(filter strip,$(MAKECMDGOALS)),)
> install: strip
> endif
> endif
> ---- >8 -----
>
> MAKECMDGOALS is available from at least GNU Make 3.75.1 in 1997.
Or the "|" thing Dscho floated earlier?
> Anyway, maybe it's only me, but I think people may want to install
> first, then strip later for debug mapping.

Perhaps. One bad thing with the current "strip" arrangement is that it is done in the built directory, and because "make install" would blindly install whatever in the built directory, if you truly care that you install unstripped binaries, you need to see if they are stripped and rebuild them as needed, because "make strip" may or may not have been done. From that point of view, getting rid of the current "make strip" and introducing either "make strip-installed" ("we've installed things earlier---go strip them") or "make install-stripped" ("we've built (or if we haven't please build them first), now install them and strip them in the installed directory") may make more sense. And for that, any idea that came up in this discussion that relies on the current "strip" target would not help.

Thanks.
Previous: Đoàn Trần Công DanhNext: Bagas Sanjaya
Message 5 of 10 in “make: add INSTALL_STRIP variable”
  1. make: add INSTALL_STRIP variableBagas Sanjaya, Aug 20, 2021
  2. Đoàn Trần Công DanhAug 20, 2021
  3. Junio C HamanoAug 20, 2021
  4. Đoàn Trần Công DanhAug 21, 2021
  5. Junio C HamanoAug 23, 2021
  6. Bagas SanjayaAug 24, 2021
  7. Johannes SchindelinAug 24, 2021
  8. Junio C HamanoAug 24, 2021
  9. Bagas SanjayaAug 21, 2021
  10. Đoàn Trần Công DanhAug 21, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.