numam-spdk/module
Jim Harris 79f9a7f572 build: generate pkg-config files for SPDK
Users can now generate the necessary linker args for their
own applications using something like:

PKG_CONFIG_PATH=build/lib/pkgconfig pkg-config --libs spdk_nvme

Dependencies between libraries are included in the generated
.pc files, so the user only needs to pass the top-level subsystems
or individual SPDK libraries they are using in their application.

Modules will automatically be added to the output if the associated
library is specified.  For example, specifying "spdk_bdev" will include
the libraries not only for spdk_bdev, but also all of the bdev modules.

Users still need to supply the -Wl,--no-as-needed or -Wl,--whole-archive
flags. They cannot be added to the .pc files without increasing the length
of the argument string by a factor of 15x to 20x.

Modify the test/external_code/hello_world Makefile to use pkg-config to
ensure this gets tested at some level in our autotest environment.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: Ie48a75f11969d5d775d514cf10bcb82d197eabfd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4371
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2021-01-21 09:46:32 +00:00
..
accel ioat: remove whitelist/blacklist functionality 2020-12-03 09:41:07 +00:00
bdev lib/nvme: add function spdk_nvme_bytes_to_numd to calculate number of dwords 2021-01-20 08:45:43 +00:00
blob bdev: extend interface with get module ctx 2020-12-01 10:20:56 +00:00
blobfs module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
env_dpdk log: remove internal log.h header 2020-10-15 08:23:39 +00:00
event nbd: Use async manner to stop nbd device. 2020-12-28 14:05:15 +00:00
sock sock: create spdk_sock_prep_reqs function. 2020-11-27 09:22:30 +00:00
Makefile build: generate pkg-config files for SPDK 2021-01-21 09:46:32 +00:00