Skip to contentSkip to conversation

add freebsd support in Makefile

PATCH New Alecs King 1 participant 1 message Jun 15, 2016 Kbuild

lore
Share & tools
lore

Alecs King

author
#0 lore raw

PATCH 1/1 add freebsd support in Makefile

fbsd needs iconv and third party lib/headers are inside /usr/local

e3b0db75ae3521b979a0b7ab115abdfab24b3111

Makefile +5 -0
index 2e95353..6910448 100644
@@ -251,6 +251,11 @@ ifeq ($(uname_O),Cygwin)
 	NO_IPV6 = YesPlease
 	X = .exe
 endif
+ifeq ($(uname_S),FreeBSD)
+	NEEDS_LIBICONV = YesPlease
+	ALL_CFLAGS += -I/usr/local/include
+	ALL_LDFLAGS += -L/usr/local/lib
+endif
 ifeq ($(uname_S),OpenBSD)
 	NO_STRCASESTR = YesPlease
 	NEEDS_LIBICONV = YesPlease
Signature · 1 line
Alecs King