mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
645ca45a13
libzutil depends on libnvpair, but this dependency is undeclared in the build system. Therefore it isn't possible to make a new command that depends on libzutil, but does not (directly) depend on libnvpair. This commit makes this dependency explicit. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reivewed-by: Ryan Moeller <freqlabs@FreeBSD.org> Signed-off-by: Matthew Ahrens <mahrens@delphix.com> Closes #10915
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
# Suppress unused but set variable warnings often due to ASSERTs
|
|
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
|
|
AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
|
|
|
|
DEFAULT_INCLUDES += -I$(srcdir)
|
|
|
|
noinst_LTLIBRARIES = libzutil.la
|
|
|
|
USER_C = \
|
|
zutil_device_path.c \
|
|
zutil_import.c \
|
|
zutil_import.h \
|
|
zutil_nicenum.c \
|
|
zutil_pool.c
|
|
|
|
if BUILD_LINUX
|
|
USER_C += \
|
|
os/linux/zutil_device_path_os.c \
|
|
os/linux/zutil_import_os.c \
|
|
os/linux/zutil_compat.c
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
DEFAULT_INCLUDES += -I$(top_srcdir)/include/os/freebsd/zfs
|
|
|
|
USER_C += \
|
|
os/freebsd/zutil_device_path_os.c \
|
|
os/freebsd/zutil_import_os.c \
|
|
os/freebsd/zutil_compat.c
|
|
|
|
VPATH += $(top_srcdir)/module/os/freebsd/zfs
|
|
|
|
nodist_libzutil_la_SOURCES = zfs_ioctl_compat.c
|
|
endif
|
|
|
|
libzutil_la_SOURCES = $(USER_C)
|
|
|
|
libzutil_la_LIBADD = \
|
|
$(abs_top_builddir)/lib/libavl/libavl.la \
|
|
$(abs_top_builddir)/lib/libtpool/libtpool.la \
|
|
$(abs_top_builddir)/lib/libnvpair/libnvpair.la \
|
|
$(abs_top_builddir)/lib/libspl/libspl.la
|
|
|
|
if BUILD_LINUX
|
|
libzutil_la_LIBADD += \
|
|
$(abs_top_builddir)/lib/libefi/libefi.la
|
|
endif
|
|
|
|
libzutil_la_LIBADD += -lm $(LIBBLKID_LIBS) $(LIBUDEV_LIBS)
|