@matheusbsbs / matheus-bagliano / commits / e88856b485
Fork 0

Fix compilation on newer NetBSD systems

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 [jc: with a bit of simplification later discussed on the list.] Signed-off-by: Dennis Stosberg <dennis@stosberg.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Dennis Stosberg committed May 11, 2006 at 19:35 UTC e88856b485cd73dfc1f3ef8d4c5b52a2f557e8c8
1 file changed +3 -1
Makefile
+3 -1
@@ -281,7 +281,9 @@ ifeq ($(uname_S),OpenBSD)
281 ALL_LDFLAGS += -L/usr/local/lib
282 endif
283 ifeq ($(uname_S),NetBSD)
284 - NEEDS_LIBICONV = YesPlease
284 + ifeq ($(shell expr "$(uname_R)" : '[01]\.'),2)
285 + NEEDS_LIBICONV = YesPlease
286 + endif
287 ALL_CFLAGS += -I/usr/pkg/include
288 ALL_LDFLAGS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
289 endif