# pkg-config {#setup-hook-pkg-config}
Adds the `lib/pkgconfig` and `share/pkgconfig` subdirectories of each build input to the `PKG_CONFIG_PATH` environment variable.
Chunks
ad28b75d (1st chunk of `doc/hooks/pkg-config.section.md`)
Title: pkg-config Environment Variable Setup
Summary
This text describes how the `pkg-config` setup hook functions by automatically adding the `lib/pkgconfig` and `share/pkgconfig` subdirectories from all build inputs to the `PKG_CONFIG_PATH` environment variable.