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

Re: [PATCH v2] abspath.h file is generated by makeheaders tool

From
SSSkrab Sah <skrab.sah@gmail.com>
Date
Oct 16, 2022, 16:06 UTC
Message-ID
<CA+J78MUsYXDzc7wf0S4J7WimFFpL-zEo5gftT17syT46CnMaqA@mail.gmail.com>
In-Reply-To
<Y0wDieA32uVtYmgx@danh.dev>
> This will break cross-compilation.
sorry, it was not in my mind.
Show 17 quoted lines
> At the very least, we needs to use either HOSTCC (likes linux project),
> HOST_CC or CC_FOR_BUILD (GNU Autotools' convention) to compile
> makeheaders
>
> So, something like (not tested, whatsoever):
>
>         CC_FOR_BUILD = $(CC)
>         CFLAGS_FOR_BUILD = $(CFLAGS)
>         LDFLAGS_FOR_BUILD = $(LDFLAGS)
>         QUIET_HOSTCC = echo '   ' HOSTCC $@;
>         QUIET_MAKEHEADERS = echo '      ' MAKEHEADERS $@;
>
>         makeheaders: tools/makeheaders.c
>                 $(QUIET_HOSTCC)$(CC_FOR_BUILD) -o $@ $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $<
>
>         abspath.h: abspath.c makeheaders
>                 $(QUIET_MAKEHEADERS)./makeheaders $<
Ok, as you suggested above, I will modify the patch according to it.

If anyone suggests it will be good or not, I have another way to do it. What if we put the makeheaders tool executable in an online platform and then put it in Makefile to download it over the internet according to the system.

Previous: Đoàn Trần Công DanhNext: Junio C Hamano
Message 6 of 11 in “abspath.h file is generated by makeheaders tool”
  1. abspath.h file is generated by makeheaders toolskrab-sah via GitGitGadget, Oct 12, 2022
  2. Ævar Arnfjörð BjarmasonOct 12, 2022
  3. abspath.h file is generated by makeheaders toolskrab-sah via GitGitGadget, Oct 13, 2022
  4. Skrab SahOct 16, 2022
  5. Đoàn Trần Công DanhOct 16, 2022
  6. Skrab SahOct 16, 2022
  7. Junio C HamanoOct 16, 2022
  8. Đoàn Trần Công DanhOct 17, 2022
  9. Skrab SahOct 17, 2022
  10. Junio C HamanoOct 17, 2022
  11. Skrab SahOct 18, 2022

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.