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

[PATCH] Fix compilation on newer NetBSD systems

From
DSDennis Stosberg <dennis@stosberg.net>
Date
May 11, 2006, 17:35 UTC
Message-ID
<20060511173531.G18d4553c@leonov.stosberg.net>

NetBSD >=2.0 has iconv() in libc. A libiconv is not required and does not exist.

See: http://netbsd.gw.com/cgi-bin/man-cgi?iconv+3+NetBSD-2.0
Signed-off-by: Dennis Stosberg <dennis@stosberg.net>
---
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
2a73fcf43bfd1f73ec5e1e50396d54b83abae5e1
diff --git a/Makefile b/Makefile
index 37fbe78..26fa4e6 100644
--- a/Makefile
+++ b/Makefile
@@ -285,7 +285,9 @@ ifeq ($(uname_S),OpenBSD)
 	ALL_LDFLAGS += -L/usr/local/lib
 endif
 ifeq ($(uname_S),NetBSD)
-	NEEDS_LIBICONV = YesPlease
+	ifeq ($(shell test `uname -r | sed -e 's/^\([0-9]\).*/\1/'` -lt 2 && echo y),y)
+		NEEDS_LIBICONV = YesPlease
+	endif
 	ALL_CFLAGS += -I/usr/pkg/include
 	ALL_LDFLAGS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
 endif
-- 
1.3.2.gbe65
Next: Junio C Hamano
Message 1 of 3 in “Fix compilation on newer NetBSD systems”
  1. Fix compilation on newer NetBSD systemsDennis Stosberg, May 11, 2006
  2. Junio C HamanoMay 15, 2006
  3. Dennis StosbergMay 15, 2006

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.