From: Jens Axboe Date: Thu, 28 Feb 2013 19:34:31 +0000 (+0100) Subject: solaris: ensure that TCP_NODELAY gets picked up X-Git-Tag: fio-2.0.15~45 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=7366ad05740d4cbbe5b43daa3b9b9efe74df34b3;hp=8e47ca657dd6b4215463d515769d60e0d123a32e 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 --- 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"