From 22e0ea51419b801a9eef5ffa3ae2a6224464a952 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 19 Apr 2009 14:04:33 +0200 Subject: [PATCH] FreeBSD requires -liconv to link (Thanks Dennis Herrmann) --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index d73ea899..6a21a7cd 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,10 @@ CFLAGS += -idirafter /usr/pkg/include LDFLAGS += -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/pkg/lib endif +ifeq ($(UNAME),FreeBSD) +LDFLAGS += -liconv +endif + ifeq ($(UNAME),Linux) CFLAGS += -D_GNU_SOURCE endif