]> git.proxmox.com Git - mirror_zfs.git/commitdiff
config: don't link libudev on FreeBSD
authorRob N <robn@despairlabs.com>
Mon, 27 Mar 2023 18:55:54 +0000 (05:55 +1100)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2023 18:55:54 +0000 (11:55 -0700)
FreeBSD has a libudev shim in libudev-devd. If present, configure would
detect it and produce binaries linked against it, even though nothing
used it. That is surprising and unnecessary, so lets remove it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #14669

config/user.m4

index a7241f44f1fd61625c05d592726c65e85203a97a..6ec27a5b2cf520e338cf0e569990ae733caebd20 100644 (file)
@@ -14,11 +14,11 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [
        AM_COND_IF([BUILD_LINUX], [
                ZFS_AC_CONFIG_USER_UDEV
                ZFS_AC_CONFIG_USER_SYSTEMD
+               ZFS_AC_CONFIG_USER_LIBUDEV
                ZFS_AC_CONFIG_USER_LIBUUID
                ZFS_AC_CONFIG_USER_LIBBLKID
        ])
        ZFS_AC_CONFIG_USER_LIBTIRPC
-       ZFS_AC_CONFIG_USER_LIBUDEV
        ZFS_AC_CONFIG_USER_LIBCRYPTO
        ZFS_AC_CONFIG_USER_LIBAIO
        ZFS_AC_CONFIG_USER_LIBATOMIC