PKGCONF - Online Linux Manual PageSection : 1
Updated : November 15, 2016
NAME pkgconf —a system for configuring build dependency information
SYNOPSIS
pkgconf [options] [list of modules]
DESCRIPTION pkgconf is a program which helps to configure compiler and linker flags for development libraries. This allows build systems to detect other dependencies and use them with the system toolchain.
GENERAL OPTIONS --version Display the supported pkg-config version and exit. --atleast-pkgconfig-version=VERSION Exit with error if we do not support the requested pkg-config version. --errors-to-stdout Print all errors on the main output stream instead of the error output stream. --silence-errors Do not display any errors at all. --list-all Walk all directories listed in the PKG_CONFIG_PATH environmental variable and display information on packages which have registered information there. --simulate Simulates resolving a dependency graph based on the requested modules on the command line. Dumps a series of trees denoting pkgconf's resolver state. --no-cache Skip caching packages when they are loaded into the internal resolver. This may result in an alternate dependency graph being computed. --ignore-conflicts Ignore ‛Conflicts’ rules in modules. --env-only Learn about pkgconf's configuration strictly from environmental variables. --validate package ... Validate specific ‛.pc’ files for correctness. --maximum-traverse-depth=DEPTH Impose a limit on the allowed depth in the dependency graph. For example, a depth of 2 will restrict the resolver from acting on child dependencies of modules added to the resolver's solution. --static Compute a deeper dependency graph and use compiler/linker flags intended for static linking. --shared Compute a simple dependency graph that is only suitable for shared linking. --pure Treats the computed dependency graph as if it were pure. This is mainly intended for use with the --static flag. --no-provides Ignore ‛Provides’ rules in modules when resolving dependencies. --with-path=PATH Adds a new module search path to pkgconf's dependency resolver. Paths added in this way are given preference before other paths. --define-prefix Attempts to determine the prefix variable to use for CFLAGS and LIBS entry relocations. This is mainly useful for platforms where framework SDKs are relocatable, such as Windows. --dont-define-prefix Disables the ‛define-prefix’ feature. --prefix-variable=VARIABLE Sets the ‛prefix’ variable used by the ‛define-prefix’ feature. --relocate=PATH Relocates a path using the pkgconf_path_relocate API. This is mainly used by the testsuite to provide a guaranteed interface to the system's path relocation backend. --dont-relocate-paths Disables the path relocation feature.
MODULE-SPECIFIC OPTIONS --atleast-version=VERSION Exit with error if a module's version is less than the specified version. --exact-version=VERSION Exit with error if a module's version is not exactly the specified version. --max-version=VERSION Exit with error if a module's version is greater than the specified version. --exists Exit with a non-zero result if the dependency resolver was unable to find all of the requested modules. --uninstalled Exit with a non-zero result if the dependency resolver uses an ‛uninstalled’ module as part of its solution. --no-uninstalled Forbids the dependency resolver from considering 'uninstalled' modules as part of a solution.
QUERY-SPECIFIC OPTIONS --cflags, --cflags-only-I, --cflags-only-other Display either all CFLAGS, only -I CFLAGS or only CFLAGS that are not -I. --libs, --libs-only-L, --libs-only-l, --libs-only-other Display either all linker flags, only -L linker flags, only -l linker flags or only linker flags that are not -L or -l. --keep-system-cflags, --keep-system-libs Keep CFLAGS or linker flag fragments that would be filtered due to being included by default in the compiler. --define-variable=VARNAME=VALUE Define VARNAME as VALUE. Variables are used in query output, and some modules' results may change based on the presence of a variable definition. --print-variables Print all seen variables for a module to the output channel. --print-provides Print all relevant ‛Provides’ entries for a module to the output channel. --variable=VARNAME Print the value of VARNAME. --print-requires, --print-requires-private Print the modules included in either the Requires field or the Requires.private field. --digraph Dump the dependency resolver's solution as a graphviz ‛dot’ file. This can be used with graphviz to visualize module interdependencies. --path Display the filenames of the ‛.pc’ files used by the dependency resolver for a given dependency set. --env=VARNAME Print the requested values as variable declarations in a similar format as the env(1) command. --fragment-filter=TYPES Filter the fragment lists for the specified types. --modversion Print the version of the queried module.
ENVIRONMENTVa PKG_CONFIG_PATH List of secondary directories where ‛.pc’ files are looked up. Va PKG_CONFIG_LIBDIR List of primary directories where ‛.pc’ files are looked up. Va PKG_CONFIG_SYSROOT_DIR ‛sysroot’ directory, will be prepended to every path defined in PKG_CONFIG_PATH. Useful for cross compilation. Va PKG_CONFIG_TOP_BUILD_DIR Provides an alternative setting for the ‛pc_top_builddir’ global variable. Va PKG_CONFIG_PURE_DEPGRAPH If set, enables the same behaviour as the --pure flag. Va PKG_CONFIG_SYSTEM_INCLUDE_PATH List of paths that are considered system include paths by the toolchain. This is a pkgconf-specific extension. Va PKG_CONFIG_SYSTEM_LIBRARY_PATH List of paths that are considered system library paths by the toolchain. This is a pkgconf-specific extension. Va PKG_CONFIG_DISABLE_UNINSTALLED If set, enables the same behaviour as the --no-uninstalled flag. Va PKG_CONFIG_LOG ‛logfile’ which is used for dumping audit information concerning installed module versions. Va PKG_CONFIG_DEBUG_SPEW If set, enables additional debug logging. The format of the debug log messages is implementation-specific. Va PKG_CONFIG_DONT_RELOCATE_PATHS If set, disables the path relocation feature. Va PKG_CONFIG_MSVC_SYNTAX If set, uses MSVC syntax for fragments. Va PKG_CONFIG_FDO_SYSROOT_RULES If set, follow the sysroot prefixing rules that freedesktop.org pkg-config uses. Va DESTDIR If set to PKG_CONFIG_SYSROOT_DIR, assume that PKG_CONFIG_FDO_SYSROOT_RULES is set.
EXAMPLESDisplaying the CFLAGS of a package: $ pkgconf --cflags foo -fPIC -I/usr/include/foo
SEE ALSOpc(5), pkg.m4(7) 0
Johanes Gumabo
Data Size : 21,317 byte
man-pkg-config.1Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 198,115
Visitor ID : :
Visitor IP : 18.226.165.234 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (mdoc_err|80|pkgconf.1|179|Va|.It Va PKG_CONFIG_PATH
) (mdoc_err|80|pkgconf.1|183|Va|.It Va PKG_CONFIG_LIBDIR
) (mdoc_err|80|pkgconf.1|187|Va|.It Va PKG_CONFIG_SYSROOT_DIR
) (mdoc_err|80|pkgconf.1|192|Va|.It Va PKG_CONFIG_TOP_BUILD_DIR
) (mdoc_err|80|pkgconf.1|196|Va|.It Va PKG_CONFIG_PURE_DEPGRAPH
) (mdoc_err|80|pkgconf.1|200|Va|.It Va PKG_CONFIG_SYSTEM_INCLUDE_PATH
) (mdoc_err|80|pkgconf.1|203|Va|.It Va PKG_CONFIG_SYSTEM_LIBRARY_PATH
) (mdoc_err|80|pkgconf.1|206|Va|.It Va PKG_CONFIG_DISABLE_UNINSTALLED
) (mdoc_err|80|pkgconf.1|210|Va|.It Va PKG_CONFIG_LOG
) (mdoc_err|80|pkgconf.1|213|Va|.It Va PKG_CONFIG_DEBUG_SPEW
) (mdoc_err|80|pkgconf.1|216|Va|.It Va PKG_CONFIG_DONT_RELOCATE_PATHS
) (mdoc_err|80|pkgconf.1|218|Va|.It Va PKG_CONFIG_MSVC_SYNTAX
) (mdoc_err|80|pkgconf.1|220|Va|.It Va PKG_CONFIG_FDO_SYSROOT_RULES
) (mdoc_err|80|pkgconf.1|222|Va|.It Va DESTDIR
)