[PATCH] perl bindings fix compilation errors
- From
Andy Whitcroft <apw@shadowen.org>
- Date
- Sep 25, 2006, 10:03 UTC
- Message-ID
- <20060925100319.GA1655@shadowen.org>
perl bindings: fix compilation errors
With the introduction of Makefile.PL to the perl bindings we no longer seem to pass in either the definition of SHA1_HEADER or GIT_VERSION. It seems we no longer pass over the BASIC_FLAGS into the compilation.
Signed-off-by: Andy Whitcroft <apw@shadowen.org> ---
diff --git a/Makefile b/Makefile index d705e06..d32f4c4 100644 --- a/Makefile +++ b/Makefile @@ -603,7 +603,7 @@ all: $(ALL_PROGRAMS) $(BUILT_INS) git$X git-merge-recur$X all: perl/Makefile - $(MAKE) -C perl + $(MAKE) -C perl GIT_VERSION='$(GIT_VERSION)' BASIC_CFLAGS="$(BASIC_CFLAGS)" $(MAKE) -C templates strip: $(PROGRAMS) git$X diff --git a/perl/Makefile.PL b/perl/Makefile.PL index de73235..00fc779 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -5,6 +5,8 @@ sub MY::postamble { instlibdir: @echo '$(INSTALLSITELIB)' +CCFLAGS += -DGIT_VERSION='"$(GIT_VERSION)"' $(BASIC_CFLAGS) + MAKE_FRAG }