From adaa46d81bca50eb16a40fea47e42e3df4b7e2cd Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 28 Feb 2013 22:10:22 +0100 Subject: [PATCH 1/1] configure: add general libs for Solaris Assume we just need them, this makes us find inet_aton() on Solaris too. Signed-off-by: Jens Axboe --- configure | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 8f867498..1a75fa48 100755 --- a/configure +++ b/configure @@ -87,7 +87,7 @@ compile_object() { compile_prog() { local_cflags="$1" - local_ldflags="$2" + local_ldflags="$2 $LIBS" echo "Compiling test case $3" >> config.log do_cc $CFLAGS $local_cflags -o $TMPE $TMPC $LDFLAGS $local_ldflags } @@ -193,6 +193,7 @@ SunOS) if test -z "$cpu" && test "$(isainfo -k)" = "amd64"; then cpu="x86_64" fi + LIBS="-lnsl -lsocket" ;; CYGWIN*) echo "Forcing known good options on Windows" @@ -906,9 +907,6 @@ 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