pkgconf is a development utility written in C for discovering software libraries and configuring compiler and linker flags. It provides an extended implementation of the traditional pkg-config interface while introducing additional dependency resolution capabilities. Its optimized solver constructs directed dependency graphs to efficiently process complex software relationships. Virtual package support and conflict detection improve dependency selection during build configuration. Linker flag optimization helps reduce unnecessary library linking when package metadata is correctly defined. The accompanying libpkgconf library enables compilers, development environments, and other tools to access package information programmatically. Dedicated utilities generate SPDX-compatible software bills of materials. A lightweight standalone variant provides essential pkg-config functionality.
Features
- Automated development library discovery with compiler and linker flag generation from package metadata files
- Optimized directed dependency graph resolution for handling extensive and complex software dependency relationships
- Virtual package support with integrated dependency conflict detection during package resolution
- Linker flag optimization for reducing unnecessary library dependencies and avoiding excessive binary linking
- Embeddable libpkgconf library for integrating package discovery into compilers, IDEs, and development utilities
- Integrated bomtool and spdxtool utilities for generating SPDX-compatible software bills of materials