X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=1a75fa4830555f871f266b9c03e24e0d10595948;hp=1a5295a1e77db62fc33c87933096b68905918ee4;hb=adaa46d81bca50eb16a40fea47e42e3df4b7e2cd;hpb=38b9354a7a9bf124589475c5d16c1b7c692c9b57 diff --git a/configure b/configure index 1a5295a1..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"