mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
6a2dda8f05
For #13083, curiously, it did not print the actual error, just that the compile failed with "Error 1". In theory, this flag should cause it to report errors twice sometimes. In practice, I'm pretty okay with reporting some twice if it avoids reporting some never. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Damian Szuberski <szuberskidamian@gmail.com> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #13086
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
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)
|
|
AM_CFLAGS += -fvisibility=hidden
|
|
# See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54020
|
|
AM_CFLAGS += -no-suppress
|
|
|
|
# wchar_t is undefined-signedness, but we compare to >=0; this warns with unsigned wchar_t
|
|
libnvpair_json.$(OBJEXT): CFLAGS += -Wno-type-limits
|
|
libnvpair_json.l$(OBJEXT): CFLAGS += -Wno-type-limits
|
|
|
|
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
|
|
|
|
include $(top_srcdir)/config/CppCheck.am
|
|
|
|
# Library ABI
|
|
EXTRA_DIST = libnvpair.abi libnvpair.suppr
|