git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perl bindings fix compilation errors
@ 2006-09-25 10:03 Andy Whitcroft
  2006-09-25 10:25 ` Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: Andy Whitcroft @ 2006-09-25 10:03 UTC (permalink / raw)
  To: git

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
 }
 

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-09-27  9:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25 10:03 [PATCH] perl bindings fix compilation errors Andy Whitcroft
2006-09-25 10:25 ` Johannes Schindelin
2006-09-25 11:34   ` Andy Whitcroft
2006-09-25 11:38     ` Johannes Schindelin
2006-09-26  4:54     ` Junio C Hamano
2006-09-26  8:34       ` Johannes Schindelin
2006-09-27  2:40         ` Junio C Hamano
2006-09-27  9:42           ` Johannes Schindelin

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).