]> granicus.if.org Git - cgit/commitdiff
Makefile: support FreeBSD libiconv paths
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 17 Oct 2012 16:30:08 +0000 (18:30 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 17 Oct 2012 16:40:48 +0000 (18:40 +0200)
According to Dan Rue <drue@therub.org>, FreeBSD requires the lib paths
to get libiconv from /usr/local.

Makefile

index 1e341295f64fc916595ee82f1c41ca24754c1ef2..b95cee431d24d3477e0efcecd69d9d4d106bd2b4 100644 (file)
--- 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.
 #