HomeFreeBSD

ZTS: Fix devname2devid build on FreeBSD with libudev

Description

ZTS: Fix devname2devid build on FreeBSD with libudev

When libudev is installed on FreeBSD, configure finds it and sets
WANT_DEVNAME2DEVID, but it isn't found by the linker because we
didn't specify where it is.

Use LIBUDEV_LIBS so the location of the library gets added to the
linker flags for devname2devid.
Also use LIBUDEV_CFLAGS here in case some other platform needs it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10590

Details

Provenance
freqlabsAuthored on Jul 22 2020, 5:49 PM
GitHub <noreply@github.com>Committed on Jul 22 2020, 5:49 PM
Parents
rG59415fc9fba4: Add zfs_gitrev.h to the distributed sources
Branches
Unknown
Tags
Unknown