mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
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
This commit is contained in:
parent
59415fc9fb
commit
0c79b070a7
@ -5,5 +5,6 @@ pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
|
||||
if WANT_DEVNAME2DEVID
|
||||
pkgexec_PROGRAMS = devname2devid
|
||||
devname2devid_SOURCES = devname2devid.c
|
||||
devname2devid_LDADD = -ludev
|
||||
devname2devid_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS)
|
||||
devname2devid_LDADD = $(LIBUDEV_LIBS)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user