]> granicus.if.org Git - zfs/commit
Add a pkgconfig file
authorTurbo Fredriksson <turbo@bayour.com>
Fri, 6 Jun 2014 23:23:22 +0000 (01:23 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 28 Aug 2014 14:59:43 +0000 (07:59 -0700)
commitc3f8dc2a48e0c310abb7b58019fbcf944fa2697c
tree9d332d1de22b619473a1ed35133a88b370082fcf
parent9ad656b2d025a23ba27a4bc482638e753e62d947
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 <turbo@bayour.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes: #585
configure.ac
lib/libzfs/.gitignore [new file with mode: 0644]
lib/libzfs/Makefile.am
lib/libzfs/libzfs.pc.in [new file with mode: 0644]
lib/libzfs/libzfs_core.pc.in [new file with mode: 0644]
rpm/generic/zfs.spec.in