diff options
author | Turbo Fredriksson <[email protected]> | 2014-06-07 01:23:22 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2014-08-28 07:59:43 -0700 |
commit | c3f8dc2a48e0c310abb7b58019fbcf944fa2697c (patch) | |
tree | 9d332d1de22b619473a1ed35133a88b370082fcf /rpm/generic/zfs.spec.in | |
parent | 9ad656b2d025a23ba27a4bc482638e753e62d947 (diff) |
Add a pkgconfig file
Providing a pkg-config file makes is easy for 3rd party applications
to link against the libzfs libraries. It also allows the libzfs
developers to modify the list of required libraries and cflags
without breaking existing applications.
The following example illustrates how pkg-config can be used:
cc `pkg-config --cflags --libs libzfs` -o myapp myapp.c
/*
* myapp.c
*/
void main()
{
libzfs_handle_t *hdl;
hdl = libzfs_init();
if (hdl)
libzfs_fini(hdl);
}
Signed-off-by: Turbo Fredriksson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes: #585
Diffstat (limited to 'rpm/generic/zfs.spec.in')
-rw-r--r-- | rpm/generic/zfs.spec.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index b0917176d..c173b2c6e 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -280,6 +280,8 @@ exit 0 %{_libdir}/libzfs*.so.* %files -n libzfs2-devel +%{_datadir}/pkgconfig/libzfs.pc +%{_datadir}/pkgconfig/libzfs_core.pc %{_libdir}/*.so %{_includedir}/* %doc AUTHORS COPYRIGHT DISCLAIMER |