mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-19 02:41:00 +03:00
72154bd6c9
Also remove -Wno-unused-but-set-variable Upstream-bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61118 Reviewed-by: Alejandro Colomar <alx.manpages@gmail.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #13110
46 lines
932 B
Makefile
46 lines
932 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
AM_CFLAGS += $(LIBBLKID_CFLAGS) $(LIBUDEV_CFLAGS)
|
|
AM_CFLAGS += -fvisibility=hidden
|
|
|
|
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
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
USER_C += \
|
|
os/freebsd/zutil_device_path_os.c \
|
|
os/freebsd/zutil_import_os.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 \
|
|
-lrt
|
|
endif
|
|
|
|
libzutil_la_LIBADD += -lm $(LIBBLKID_LIBS) $(LIBUDEV_LIBS)
|
|
|
|
include $(top_srcdir)/config/CppCheck.am
|