mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
1ede0c716b
The pthread_* functions are in -lpthread on FreeBSD. Some of them are implicitly linked through libc, but on FreeBSD 13 at least pthread_getname_np() is not. Just be explicit, since -lpthread is the documented interface anyway. Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16168
52 lines
1.1 KiB
Makefile
52 lines
1.1 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)
|
|
|
|
if BUILD_FREEBSD
|
|
libspl_assert_la_LIBADD += -lpthread
|
|
endif
|