]> git.cameronkatri.com Git - cgit.git/commitdiff
Makefile: Support OpenBSD just like FreeBSD
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 17 Oct 2012 19:55:48 +0000 (21:55 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 17 Oct 2012 19:55:48 +0000 (21:55 +0200)
Makefile

index b95cee431d24d3477e0efcecd69d9d4d106bd2b4..f4c5b8a73f5e69723f557f47200d9e600a09bda1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,8 +49,8 @@ ifeq ($(uname_O),Cygwin)
        NEEDS_LIBICONV = YesPlease
 endif
 
        NEEDS_LIBICONV = YesPlease
 endif
 
-ifeq ($(uname_S),FreeBSD)
-       # Apparantly libiconv is installed in /usr/local on FreeBSD
+ifeq ($(uname_S),$(filter $(uname_S),FreeBSD OpenBSD))
+       # Apparantly libiconv is installed in /usr/local on BSD
        LDFLAGS ?= -L/usr/local/lib
        CFLAGS ?= -I/usr/local/include
        NEEDS_LIBICONV = yes
        LDFLAGS ?= -L/usr/local/lib
        CFLAGS ?= -I/usr/local/include
        NEEDS_LIBICONV = yes