git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Building git on NetBSD
@ 2005-11-12 15:12 walt
  2005-11-12 15:32 ` Andreas Ericsson
  0 siblings, 1 reply; 5+ messages in thread
From: walt @ 2005-11-12 15:12 UTC (permalink / raw)
  To: git

This gets git going on NetBSD:

--- Makefile.orig	2005-11-12 05:06:55.000000000 -0800
+++ Makefile
@@ -212,6 +212,10 @@ ifeq ($(uname_S),OpenBSD)
 	NEEDS_LIBICONV = YesPlease
 	ALL_CFLAGS += -I/usr/local/include -L/usr/local/lib
 endif
+ifeq ($(uname_S),NetBSD)
+	NEEDS_LIBICONV = YesPlease
+	ALL_CFLAGS += -I/usr/pkg/include -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
+endif
 ifneq (,$(findstring arm,$(uname_M)))
 	ARM_SHA1 = YesPlease
 endif

I'm no software developer so I'm not sure about the syntax of the -rpath
flag.  It does what I wanted, but it results in lots of warnings about
not being used because no linking is taking place.  Should this maybe
go in LDFLAGS instead of CFLAGS?  Dunno.

Anyway, I actually used cg-clone on NetBSD to clone the git repository,
and I'll try to get the pkgsrc guys interested in creating packages for
cogito and git.

Oh, one person was concerned about the cogito scripts running on the
NetBSD version of sh, which isn't bash.  So far I've tried cg-clone,
cg-update, and gitk, and all worked just like on linux.  Any chance
that some of the other scripts may not work as well on a non-bash sh?

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

end of thread, other threads:[~2005-11-13 23:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-12 15:12 [PATCH] Building git on NetBSD walt
2005-11-12 15:32 ` Andreas Ericsson
2005-11-13  2:41   ` Junio C Hamano
2005-11-13  9:44     ` Junio C Hamano
2005-11-13 22:51       ` wa1ter

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