From: Junio C Hamano <gitster@pobox.com>
To: git@vger.kernel.org
Cc: Haritha D <harithamma.d@ibm.com>
Subject: [PATCH 0/2] CC_LD_DYNPATH improvements
Date: Wed, 31 Jan 2024 09:42:18 -0800 [thread overview]
Message-ID: <20240131174220.4160560-1-gitster@pobox.com> (raw)
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 reply other threads:[~2024-01-31 17:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 17:42 Junio C Hamano [this message]
2024-01-31 17:42 ` [PATCH 1/2] Makefile: reduce repetitive library paths Junio C Hamano
2024-01-31 17:42 ` [PATCH 2/2] Makefile: simplify output of the libpath_template Junio C Hamano
2024-01-31 22:59 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240131174220.4160560-1-gitster@pobox.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=harithamma.d@ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).