Use proper libs when linking, then we can also remove
those from the Makefile.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
LDFLAGS += -rdynamic
endif
ifeq ($(UNAME), SunOS)
LDFLAGS += -rdynamic
endif
ifeq ($(UNAME), SunOS)
- LIBS += -lpthread -ldl -laio -lrt -lnsl -lsocket
CPPFLAGS += -D__EXTENSIONS__
endif
ifeq ($(UNAME), FreeBSD)
CPPFLAGS += -D__EXTENSIONS__
endif
ifeq ($(UNAME), FreeBSD)
EOF
if compile_prog "" "" "TCP_NODELAY"; then
tcp_nodelay="yes"
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"
fi
echo "TCP_NODELAY $tcp_nodelay"