mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +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
35 lines
588 B
Makefile
35 lines
588 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
lib_LTLIBRARIES = libuutil.la
|
|
|
|
USER_C = \
|
|
uu_alloc.c \
|
|
uu_avl.c \
|
|
uu_dprintf.c \
|
|
uu_ident.c \
|
|
uu_list.c \
|
|
uu_misc.c \
|
|
uu_open.c \
|
|
uu_pname.c \
|
|
uu_string.c
|
|
|
|
libuutil_la_SOURCES = $(USER_C)
|
|
|
|
libuutil_la_LIBADD = \
|
|
$(abs_top_builddir)/lib/libavl/libavl.la \
|
|
$(abs_top_builddir)/lib/libspl/libspl.la
|
|
|
|
libuutil_la_LIBADD += $(LTLIBINTL)
|
|
|
|
libuutil_la_LDFLAGS = -pthread
|
|
|
|
if !ASAN_ENABLED
|
|
libuutil_la_LDFLAGS += -Wl,-z,defs
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
libuutil_la_LDFLAGS += -version-info 3:0:0
|
|
else
|
|
libuutil_la_LDFLAGS += -version-info 1:1:0
|
|
endif
|