[PATCH 2/2] Makefile: Set EXTRA_CPPFLAGS during the compilation of run-command
- From
Ben Walton <bwalton@artsci.utoronto.ca>
- Date
- Mar 25, 2012, 12:31 UTC
- Message-ID
- <1332678696-4001-3-git-send-email-bwalton@artsci.utoronto.ca>
- In-Reply-To
- <1332678696-4001-1-git-send-email-bwalton@artsci.utoronto.ca>
When building run-command.o, we want to pass in a define for SHELL_PATH to ensure that the shell configured at build time is used at run time when spawning external commands.
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca> --- Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile index be1957a..344e2e0 100644 --- a/Makefile +++ b/Makefile @@ -1913,6 +1913,8 @@ builtin/help.sp builtin/help.s builtin/help.o: EXTRA_CPPFLAGS = \ '-DGIT_MAN_PATH="$(mandir_SQ)"' \ '-DGIT_INFO_PATH="$(infodir_SQ)"' +run-command.o: EXTRA_CPPFLAGS = -DSHELL_PATH='"$(SHELL_PATH)"' + $(BUILT_INS): git$X $(QUIET_BUILT_IN)$(RM) $@ && \ ln git$X $@ 2>/dev/null || \
-- 1.7.5.4