跳过导航链接 | |
退出打印视图 | |
手册页第 1 部分:用户命令 Oracle Solaris 11 Information Library (简体中文) |
- link against the installed Kerberos libraries
krb5-config [--all | --cflags | --exec-prefix | --help | --libs library | --prefix | --vendor | --version]
krb5-config identifies and displays the special flags that are needed to compile and link programs against the installed Kerberos libraries.
The following options are supported:
Displays the version, vendor, prefix and exec-prefix.
Displays the compiler flags with which Kerberos was built.
Displays the exec-prefix with which Kerberos was built.
Displays the usage message.
This is the default.
Displays compiler options required to link with library.
The following library values are supported:
Kerberos 5 application
Displays the prefix with which Kerberos was built.
Displays the vendor of the installed Kerberos implementation.
Displays the version of the installed Kerberos implementation.
示例 1 Using the --cflags Option
The following example displays the C compiler flags needed to use libkrb5(3LIB):
% krb5-config --cflags -I/usr/include/kerberosv5
示例 2 Using the--libs Option
The following example shows the C compiler options needed to link against libkrb5(3LIB):
% krb5-config --libs -L/usr/lib -R/usr/lib -lkrb5
The following exit values are returned:
Successful completion.
An error occurred.
See attributes(5) for descriptions of the following attributes:
|