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

[PATCH 0/2] CC_LD_DYNPATH improvements

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 31, 2024, 17:42 UTC
Message-ID
<20240131174220.4160560-1-gitster@pobox.com>

We seem to repeat ourselves many times in Makefile with lines like this:

  EXTLIBS += -L$(LIBPCREDIR)/$(lib) $(CC_LD_DYNPATH)$(LIBPCREDIR)/$(lib)

but we should be able to express ourselves without repeating the same long string twice, perhaps like so:

  EXTLIBS += $(call libpath_template,$(LIBPCREDIR)/$(lib))

I originally wrote this as a practice to use the $(call template) pattern in Makefile, but it may make porting to a platform without dynamic library path support simpler.

Junio C Hamano (2):
  Makefile: reduce repetitive library paths
  Makefile: simplify output of the libpath_template
 Makefile   | 12 ++++++------
 shared.mak |  6 ++++++
 2 files changed, 12 insertions(+), 6 deletions(-)
-- 
2.43.0-493-gbc7ee2e5e1
Next: Junio C Hamano
Message 1 of 4 in “CC_LD_DYNPATH improvements”
  1. 0/2 CC_LD_DYNPATH improvementsJunio C Hamano, Jan 31, 2024
  2. 2/2 Makefile: simplify output of the libpath_templateJunio C Hamano, Jan 31, 2024
  3. Junio C HamanoJan 31, 2024
  4. 1/2 Makefile: reduce repetitive library pathsJunio C Hamano, Jan 31, 2024

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.