]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/dpdk/buildtools/options-ibverbs-static.sh
import 15.2.0 Octopus source
[ceph.git] / ceph / src / seastar / dpdk / buildtools / options-ibverbs-static.sh
1 #! /bin/sh
2 # SPDX-License-Identifier: BSD-3-Clause
3 #
4 # Print link options -l for static link of ibverbs.
5 #
6 # Static flavour of ibverbs and the providers libs are explicitly picked,
7 # thanks to the syntax -l:libfoo.a
8 # Other libs (pthread and nl) are unchanged, i.e. linked dynamically by default.
9 #
10 # PKG_CONFIG_PATH may be required to be set if libibverbs.pc is not installed.
11
12 pkg-config --libs-only-l --static libibverbs |
13 tr '[:space:]' '\n' |
14 sed -r '/^-l(pthread|nl)/! s,(^-l)(.*),\1:lib\2.a,'