From: Jason A. Donenfeld Date: Wed, 17 Oct 2012 16:30:08 +0000 (+0200) Subject: Makefile: support FreeBSD libiconv paths X-Git-Tag: v0.9.1~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2853692a9ee7d0b451096f06e8f752d6551f5245;p=cgit Makefile: support FreeBSD libiconv paths According to Dan Rue , FreeBSD requires the lib paths to get libiconv from /usr/local. --- diff --git a/Makefile b/Makefile index 1e34129..b95cee4 100644 --- a/Makefile +++ b/Makefile @@ -49,6 +49,13 @@ ifeq ($(uname_O),Cygwin) NEEDS_LIBICONV = YesPlease endif +ifeq ($(uname_S),FreeBSD) + # Apparantly libiconv is installed in /usr/local on FreeBSD + LDFLAGS ?= -L/usr/local/lib + CFLAGS ?= -I/usr/local/include + NEEDS_LIBICONV = yes +endif + # # Let the user override the above settings. #