From 7366ad05740d4cbbe5b43daa3b9b9efe74df34b3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 28 Feb 2013 20:34:31 +0100 Subject: [PATCH] solaris: ensure that TCP_NODELAY gets picked up Use proper libs when linking, then we can also remove those from the Makefile. Signed-off-by: Jens Axboe --- Makefile | 2 +- configure | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bb345ed9..d55626d2 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,7 @@ ifeq ($(UNAME), Android) LDFLAGS += -rdynamic endif ifeq ($(UNAME), SunOS) - LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket + LIBS += -lpthread -ldl CPPFLAGS += -D__EXTENSIONS__ endif ifeq ($(UNAME), FreeBSD) diff --git a/configure b/configure index 1a5295a1..8f867498 100755 --- a/configure +++ b/configure @@ -906,6 +906,9 @@ int main(int argc, char **argv) EOF if compile_prog "" "" "TCP_NODELAY"; then tcp_nodelay="yes" +elif compile_prog "" "-lnsl -lsocket" "TCP_NODELAY"; then + tcp_nodelay="yes" + LIBS="-lnsl -lsocket $LIBS" fi echo "TCP_NODELAY $tcp_nodelay" -- 2.25.1