mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-28 03:49:38 +03:00
66786f7943
cmd/zpool and lib/libzutil Makefile's use -I., which won't work with a VPATH build. Replace it with -I$(srcdir) instead. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10379 Closes #10421
45 lines
885 B
Makefile
45 lines
885 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
# Suppress unused but set variable warnings often due to ASSERTs
|
|
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
|
|
|
|
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
|
|
USER_C += \
|
|
os/freebsd/zutil_device_path_os.c \
|
|
os/freebsd/zutil_import_os.c \
|
|
os/freebsd/zutil_compat.c
|
|
endif
|
|
|
|
nodist_libzutil_la_SOURCES = $(USER_C)
|
|
|
|
libzutil_la_LIBADD = \
|
|
$(top_builddir)/lib/libavl/libavl.la \
|
|
$(top_builddir)/lib/libtpool/libtpool.la
|
|
|
|
if BUILD_LINUX
|
|
libzutil_la_LIBADD += \
|
|
$(top_builddir)/lib/libefi/libefi.la
|
|
endif
|
|
|
|
libzutil_la_LIBADD += -lm $(LIBBLKID) $(LIBUDEV)
|
|
|
|
EXTRA_DIST = $(USER_C)
|