HomeFreeBSD

Add a pkgconfig file

Description

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

Details

Provenance
Turbo Fredriksson <turbo@bayour.com>Authored on Jun 6 2014, 11:23 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 28 2014, 2:59 PM
Parents
rG9ad656b2d025: Retire HAVE_IOCTL_* configure checks
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGc3f8dc2a48e0: Add a pkgconfig file (authored by Turbo Fredriksson <turbo@bayour.com>).Aug 28 2014, 2:59 PM