mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-31 04:14:21 +03:00
88686213c3
libunwind seems to do a better job of resolving a symbols than backtrace(), and is also useful on platforms that don't have backtrace() (eg musl). If it's available, use it. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #16140
48 lines
1.0 KiB
Makefile
48 lines
1.0 KiB
Makefile
include $(srcdir)/%D%/include/Makefile.am
|
|
|
|
libspl_assert_la_CFLAGS = $(AM_CFLAGS) $(LIBRARY_CFLAGS) $(LIBUNWIND_CFLAGS)
|
|
libspl_la_CFLAGS = $(libspl_assert_la_CFLAGS)
|
|
|
|
noinst_LTLIBRARIES += libspl_assert.la libspl.la
|
|
CPPCHECKTARGETS += libspl_assert.la libspl.la
|
|
|
|
libspl_assert_la_SOURCES = \
|
|
%D%/assert.c
|
|
|
|
libspl_la_SOURCES = \
|
|
%D%/libspl_impl.h \
|
|
%D%/atomic.c \
|
|
%D%/getexecname.c \
|
|
%D%/list.c \
|
|
%D%/mkdirp.c \
|
|
%D%/page.c \
|
|
%D%/strlcat.c \
|
|
%D%/strlcpy.c \
|
|
%D%/timestamp.c \
|
|
%D%/include/sys/list.h \
|
|
%D%/include/sys/list_impl.h
|
|
|
|
if BUILD_LINUX
|
|
libspl_la_SOURCES += \
|
|
%D%/os/linux/getexecname.c \
|
|
%D%/os/linux/gethostid.c \
|
|
%D%/os/linux/getmntany.c \
|
|
%D%/os/linux/zone.c
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
libspl_la_SOURCES += \
|
|
%D%/os/freebsd/getexecname.c \
|
|
%D%/os/freebsd/gethostid.c \
|
|
%D%/os/freebsd/getmntany.c \
|
|
%D%/os/freebsd/mnttab.c \
|
|
%D%/os/freebsd/zone.c
|
|
endif
|
|
|
|
libspl_la_LIBADD = \
|
|
libspl_assert.la
|
|
|
|
libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME)
|
|
|
|
libspl_assert_la_LIBADD = $(BACKTRACE_LIBS) $(LIBUNWIND_LIBS)
|