git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git on OpenBSD

From
HBHan Boetes <han@mijncomputer.nl>
Date
Oct 1, 2005, 06:23 UTC
Message-ID
<20051001062348.GA7903@boetes.org>
Hi,
I just managed to get git compile on OpenBSD,

I modified the Makefile a bit to make it work. I suppose these modifications will make it work on Free- and NetBSD as well, but I haven't tested it so I'm not sure.

iconv is installed in /usr/local that's why I had to add it to the searchpath.

diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
@@ -162,6 +162,10 @@ ifeq ($(shell uname -s),Darwin)
 	NEEDS_SSL_WITH_CRYPTO = YesPlease
 	NEEDS_LIBICONV = YesPlease
 endif
+ifeq ($(shell uname -s),OpenBSD)
+	NEEDS_LIBICONV = YesPlease
+	PLATFORM_DEFINES += -I/usr/local/include -L/usr/local/lib
+endif
 ifeq ($(shell uname -s),SunOS)
 	NEEDS_SOCKET = YesPlease
 	NEEDS_NSL = YesPlease




# Han
-- 
Lbh unir whfg ivbyngrq gur Qvtvgny Zvyyraavhz Pbclevtug Npg  ol  oernxvat  gur
cebgrpgvba bs pbclevtugrq zngrevny. Vs lbh ner abg n pvgvmra  be  erfvqrag  bs
gur HFN, lbh evfx orvat vzcevfbarq naq uryq jvgubhg onvy sbe hc gb  gjb  jrrxf
hcba ragel gb gur HFN (c) Copyright 2001 by Hartmann Schaffer (signature only)
Next: Junio C Hamano
Message 1 of 3 in “git on OpenBSD”
  1. Han BoetesOct 1, 2005
  2. Junio C HamanoOct 1, 2005
  3. Martin LanghoffOct 1, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.