mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-19 10:51:00 +03:00
4f9014b70b
Provide two make targets: checkabi and storeabi. storeabi uses libabigail to generate a reference copy of the ABI for the public libraries. checkabi compares such a reference to the compiled version, failing if they are not compatible. No ABI is generated for libzpool.so, it is only used by ztest and zdb and not external consumers. Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Antonio Russo <aerusso@aerusso.net> Closes #11144
44 lines
820 B
Makefile
44 lines
820 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
PHONY =
|
|
|
|
VPATH = \
|
|
$(top_srcdir)/module/nvpair \
|
|
$(top_srcdir)/lib/libnvpair
|
|
|
|
# Includes kernel code, generate warnings for large stack frames
|
|
# and required CFLAGS for libtirpc
|
|
AM_CFLAGS += $(FRAME_LARGER_THAN) $(LIBTIRPC_CFLAGS)
|
|
|
|
lib_LTLIBRARIES = libnvpair.la
|
|
|
|
include $(top_srcdir)/config/Abigail.am
|
|
|
|
USER_C = \
|
|
libnvpair.c \
|
|
libnvpair_json.c \
|
|
nvpair_alloc_system.c
|
|
|
|
KERNEL_C = \
|
|
nvpair_alloc_fixed.c \
|
|
nvpair.c \
|
|
fnvpair.c
|
|
|
|
dist_libnvpair_la_SOURCES = \
|
|
$(USER_C)
|
|
|
|
nodist_libnvpair_la_SOURCES = \
|
|
$(KERNEL_C)
|
|
|
|
libnvpair_la_LIBADD = \
|
|
$(abs_top_builddir)/lib/libspl/libspl_assert.la
|
|
|
|
libnvpair_la_LIBADD += $(LIBTIRPC_LIBS) $(LTLIBINTL)
|
|
|
|
libnvpair_la_LDFLAGS =
|
|
|
|
if !ASAN_ENABLED
|
|
libnvpair_la_LDFLAGS += -Wl,-z,defs
|
|
endif
|
|
|
|
libnvpair_la_LDFLAGS += -version-info 3:0:0
|