mbox series

[0/2] CC_LD_DYNPATH improvements

Message ID 20240131174220.4160560-1-gitster@pobox.com (mailing list archive)
Headers show
Series CC_LD_DYNPATH improvements | expand

Message

Junio C Hamano Jan. 31, 2024, 5:42 p.m. UTC
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(-)