mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
5f72109e5b
Commit af65916
added -Wl,-z,defs for the shared libraries. This
apparently does not work in some cases with --enable-asan, so only add
it for non-ASAN builds.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: João Carlos Mendes Luis <jonny@jonny.eng.br>
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Closes #10557
Closes #10560
45 lines
843 B
Makefile
45 lines
843 B
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)
|
|
|
|
lib_LTLIBRARIES = libnvpair.la
|
|
|
|
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
|
|
|
|
if BUILD_FREEBSD
|
|
libnvpair_la_LDFLAGS += -version-info 3:0:0
|
|
else
|
|
libnvpair_la_LDFLAGS += -version-info 1:1:0
|
|
endif
|