mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
fef8bd41fc
This replaces the generic libspl atomic.c atomics implementation with one based on builtin gcc atomics. This functionality was added as an experimental feature in gcc 4.4. Today even CentOS 7 ships with gcc 4.8 as the default compiler we can make this the default. Furthermore, the builtin atomics are as good or better than our hand-rolled implementation so it's reasonable to drop that custom code. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11904
48 lines
779 B
Makefile
48 lines
779 B
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
SUBDIRS = include
|
|
|
|
noinst_LTLIBRARIES = libspl_assert.la libspl.la
|
|
|
|
libspl_assert_la_SOURCES = \
|
|
assert.c
|
|
|
|
USER_C = \
|
|
libspl_impl.h \
|
|
atomic.c \
|
|
getexecname.c \
|
|
list.c \
|
|
mkdirp.c \
|
|
page.c \
|
|
strlcat.c \
|
|
strlcpy.c \
|
|
timestamp.c \
|
|
include/sys/list.h \
|
|
include/sys/list_impl.h
|
|
|
|
if BUILD_LINUX
|
|
USER_C += \
|
|
os/linux/getexecname.c \
|
|
os/linux/gethostid.c \
|
|
os/linux/getmntany.c \
|
|
os/linux/zone.c
|
|
endif
|
|
|
|
if BUILD_FREEBSD
|
|
USER_C += \
|
|
os/freebsd/getexecname.c \
|
|
os/freebsd/gethostid.c \
|
|
os/freebsd/getmntany.c \
|
|
os/freebsd/mnttab.c \
|
|
os/freebsd/zone.c
|
|
endif
|
|
|
|
libspl_la_SOURCES = $(USER_C)
|
|
|
|
libspl_la_LIBADD = \
|
|
libspl_assert.la
|
|
|
|
libspl_la_LIBADD += $(LIBATOMIC_LIBS) $(LIBCLOCK_GETTIME)
|
|
|
|
include $(top_srcdir)/config/CppCheck.am
|