Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/HuangShumin/fio
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/HuangShumin/fio:
  Fix configure with --build-static which enables static RDMA in #1801
  • Loading branch information
vincentkfu committed Sep 26, 2024
2 parents 0a74534 + 280b384 commit f37bdd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,9 @@ int main(int argc, char **argv)
return pd != NULL;
}
EOF
if test "$disable_rdma" != "yes" && compile_prog "" "-libverbs" "libverbs" ; then
if test "$disable_rdma" != "yes" && compile_prog "" "-libverbs -lnl-3 -lnl-route-3" "libverbs" ; then
libverbs="yes"
LIBS="-libverbs -lnl-3 -lnl-route-3 $LIBS"
fi
print_config "libverbs" "$libverbs"

Expand All @@ -1024,8 +1025,9 @@ int main(int argc, char **argv)
return 0;
}
EOF
if test "$disable_rdma" != "yes" && compile_prog "" "-lrdmacm" "rdma"; then
if test "$disable_rdma" != "yes" && compile_prog "" "-lrdmacm -lnl-3 -lnl-route-3" "rdma"; then
rdmacm="yes"
LIBS="-libverbs -lnl-3 -lnl-route-3 $LIBS"
fi
print_config "rdmacm" "$rdmacm"

Expand Down

0 comments on commit f37bdd4

Please sign in to comment.