summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-12-28 22:03:42 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-12-28 22:03:42 +0000
commit6ffdb72a4df3c06f56d594fdd56cce69c1ef664c (patch)
tree599e8a62dd295888ba7c12ff9f334b0f9550a65b /libs/nixio/Makefile
parent0ddedc638cc78d3e073ebb2dc6f31c2e12e0d247 (diff)
libs/nixio: fix compile on OS X
Diffstat (limited to 'libs/nixio/Makefile')
-rw-r--r--libs/nixio/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/nixio/Makefile b/libs/nixio/Makefile
index f70f75421..c65822f08 100644
--- a/libs/nixio/Makefile
+++ b/libs/nixio/Makefile
@@ -10,8 +10,14 @@ AXTLS_VERSION = 1.2.1
AXTLS_DIR = axTLS
AXTLS_FILE = $(AXTLS_DIR)-$(AXTLS_VERSION).tar.gz
NIXIO_TLS ?= openssl
-NIXIO_LDFLAGS = -lcrypt
NIXIO_SO = nixio.so
+NIXIO_LDFLAGS =
+
+ifeq (,$(findstring Darwin,$(OS)))
+ NIXIO_LDFLAGS += -lcrypt
+else
+ EXTRA_CFLAGS += -D__DARWIN__
+endif
NIXIO_OBJ = src/nixio.o src/socket.o src/sockopt.o src/bind.o src/address.o \
src/poll.o src/io.o src/file.o src/splice.o src/process.o src/syslog.o \