PKGCONF(1) General Commands Manual PKGCONF(1) (NAME) pkgconf - (SYNOPSIS) pkgconf [options] module ... (DESCRIPTION) pkgconf module pc(5) options . (linker) module . pkgconf (metacharacters) ( ) . POSIX (word-splitting) . `cc $(pkgconf --libs foo)', (escape) . pc(5) --with-path, PKG_CONFIG_PATH PKG_CONFIG_LIBDIR . module .pc, . options . . : 1. : --dump-personality, --about, --version, --help, --atleast-pkgconfig-version, --list-all --list-package-names: . 2. : --atleast-version, --exact-version --max-version: . 3. : --validate, --license, --license-file, --link-abi, --source, --uninstalled --env: . module --cflags --libs : 1. : --path, --print-variables, --variable: module . 2. : --print-provides, --modversion, --print-requires --print-requires-private: . 3. : --simulate, --digraph, --solution, --fragment-tree, --newlines: . --cflags --libs . (OPTIONS) options : --about (Copyright) pkgconf . . --atleast-pkgconfig-version=version version pkgconf . . --atleast-version=version module . module module version . module version . --cflags, --cflags-only-I, --cflags-only-other module, include (-I), include . --print-errors . --debug . --print-errors . pkgconf PKGCONF_LITE () . --define-prefix prefix (relocation) CFLAGS LIBS . SDK . --define-variable=varname=value varname value . . --digraph `dot' graphviz (dump) . graphviz . PKGCONF_LITE . --dont-define-prefix `define-prefix' . --dont-relocate-paths (path relocation) . --dump-personality PKG_CONFIG_LIBDIR include PKG_CONFIG_SYSTEM_INCLUDE_PATH PKG_CONFIG_SYSTEM_LIBRARY_PATH . . PKGCONF_LITE . --env=varname env(1) . --env-only --with-path PKG_CONFIG_PATH PKG_CONFIG_LIBDIR . --errors-to-stdout . --exact-version=version module . module module version . module version . --exists module . . pkgconf . --fragment-filter=types types . --help . . --ignore-conflicts `Conflicts' () . : --license, --license-file, --modversion, --path, --print-provides, --print-requires, --print-requires-private, --print-variables, --source --variable. --keep-system-cflags, --keep-system-libs CFLAGS . --libs, --libs-only-L, --libs-only-l, --libs-only-other module, (-L), (-l), . --print-errors . --link-abi ABI ( c c++) module Link.ABI . Link.ABI Requires Requires.private () (--static) . ABI c . Link.ABI pc(5) . --list-all . pc(5) Name, (`-') Description . --print-errors . . --list-package-names --list-all pc(5) . --print-errors . . --log-file=file file ( ) . pc(5) "NOT-FOUND" . PKG_CONFIG_LOG . --max-version=version module . module module version . module version . --maximum-traverse-depth=depth . depth 256 . depth -1 . depth 2 . PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH --modversion, --path, --print-provides, --print-requires, --print-requires-private, --print-variables --variable . --modversion module . --verbose module . --print-errors --maximum-traverse-depth=1 --cflags --libs . --msvc-syntax MSVC --cflags, --env --libs . PKGCONF_LITE . --newlines CFLAGS . --no-cache () . . --no-provides `Provides' . --no-uninstalled 'uninstalled' . --path module pc(5) . --prefix-variable=variable `prefix' `define-prefix' . --print-errors . . --silence-errors . --print-provides module Name, (`=') Version . module Provides . --maximum-traverse-depth=1 --cflags --libs . --print-requires, --print-requires-private module Requires Requires.private . --maximum-traverse-depth=1 --cflags --libs . --print-variables module . . --print-errors --maximum-traverse-depth=1 --cflags --libs . --pure (pure) . --static --shared . --shared (shared linking) . --static . --short-errors . --silence-errors . --debug, --errors-to-stdout --print-errors . PKG_CONFIG_DEBUG_SPEW . --simulate . pkgconf (dump) . PKGCONF_LITE . --solution module . PKGCONF_LITE . --static / (static) . --shared . --uninstalled `uninstalled' . --validate package ... `.pc' . --print-errors --errors-to-stdout . --variable=varname module varname . . --maximum-traverse-depth=1 --cflags --libs . --verbose --modversion . module . --version pkgconf . . --with-path=path path PKG_CONFIG_PATH PKG_CONFIG_LIBDIR . (ENVIRONMENT) CPATH include PKG_CONFIG_SYSTEM_INCLUDE_PATH . CPLUS_INCLUDE_PATH include PKG_CONFIG_SYSTEM_INCLUDE_PATH . C_INCLUDE_PATH include PKG_CONFIG_SYSTEM_INCLUDE_PATH . DESTDIR PKG_CONFIG_SYSROOT_DIR PKG_CONFIG_FDO_SYSROOT_RULES sysroot -I -L DESTDIR . PKG_CONFIG_SYSROOT_DIR DESTDIR . LIBRARY_PATH PKG_CONFIG_SYSTEM_LIBRARY_PATH . OBJC_INCLUDE_PATH include PKG_CONFIG_SYSTEM_INCLUDE_PATH . PKG_CONFIG_ALLOW_SYSTEM_CFLAGS --keep-system-cflags . PKG_CONFIG_ALLOW_SYSTEM_LIBS --keep-system-libs . PKG_CONFIG_DEBUG_SPEW --silence-errors . PKG_CONFIG_DISABLE_UNINSTALLED --no-uninstalled . PKG_CONFIG_DONT_DEFINE_PREFIX --dont-define-prefix . PKG_CONFIG_DONT_RELOCATE_PATHS . PKG_CONFIG_FDO_SYSROOT_RULES sysroot freedesktop.org pkg-config . PKG_CONFIG_IGNORE_CONFLICTS Conflicts . --ignore-conflicts . PKG_CONFIG_LIBDIR pc(5) . PKG_CONFIG_PATH ( ) . PKG_CONFIG_LIBDIR pkgconf PKG_DEFAULT_PATH . PKG_CONFIG_LIBDIR . PKG_CONFIG_LOG () . --log-file . PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH . -1 . --maximum-traverse-depth . PKG_CONFIG_MSVC_SYNTAX MSVC --cflags, --env --libs . --msvc-syntax . PKGCONF_LITE . PKG_CONFIG_PATH pc(5) . --with-path ( ) --env-only PKG_CONFIG_LIBDIR . PKG_CONFIG_PRELOADED_FILES pc(5) pkg-config . pc(5) . PKG_CONFIG_PURE_DEPGRAPH --pure . PKG_CONFIG_RELOCATE_PATHS --define-prefix . PKG_CONFIG_SYSROOT_DIR `sysroot' prefix pc(5) . (cross compilation) . pc_sysrootdir . PKG_CONFIG_SYSTEM_INCLUDE_PATH include include --cflags --cflags-only-I . pkgconf SYSTEM_INCLUDEDIR . CPATH, C_INCLUDE_PATH, CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH . PKG_CONFIG_SYSTEM_LIBRARY_PATH --libs --libs-only-L . pkgconf SYSTEM_LIBDIR . PKG_CONFIG_TOP_BUILD_DIR pc_top_builddir. "$(top_builddir)" pc_top_builddir . (EXIT STATUS) The pkgconf utility exits 0 on success, and >0 if an error occurs. (EXAMPLES) CFLAGS : $ pkgconf --cflags foo -fPIC -I/usr/include/foo (SEE ALSO) pc(5), pkg.m4(7) (AUTHORS) pkgconf pkgconf ( AUTHORS ). Linux 6.12.107+deb13-amd64 July 2, 2026 Linux 6.12.107+deb13-amd64