Skip to content

CC_LD_DYNPATH improvements

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Makefile: reduce repetitive library pathsMakefile shared.mak+12 -60 replies
2/2Makefile: simplify output of the libpath_templateshared.mak+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] CC_LD_DYNPATH improvements

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(-)
Signature · 1 line
2.43.0-493-gbc7ee2e5e1