X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2FMakefile.am;h=631a3568cc23885f8bbe5a835fbd34afb11b5d3e;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=34ad690753e65df98e55502d9a6623de8aadff8b;hpb=4b68c31f1859175d2bd4e1b42f1b7d301e84760f;p=lttng-ust.git diff --git a/libringbuffer/Makefile.am b/libringbuffer/Makefile.am index 34ad6907..631a3568 100644 --- a/libringbuffer/Makefile.am +++ b/libringbuffer/Makefile.am @@ -1,4 +1,5 @@ -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include +# SPDX-License-Identifier: LGPL-2.1-only + AM_CFLAGS += -fno-strict-aliasing noinst_LTLIBRARIES = libringbuffer.la @@ -8,14 +9,16 @@ libringbuffer_la_SOURCES = \ shm.c shm.h shm_types.h shm_internal.h \ ring_buffer_backend.c \ ring_buffer_frontend.c \ - api.h \ + api.h mmap.h \ backend.h backend_internal.h backend_types.h \ frontend_api.h frontend.h frontend_internal.h frontend_types.h \ nohz.h vatomic.h rb-init.h libringbuffer_la_LIBADD = \ - -lpthread \ - -lrt \ - -lnuma + -lrt + +if HAVE_LIBNUMA +libringbuffer_la_LIBADD += -lnuma +endif libringbuffer_la_CFLAGS = -DUST_COMPONENT="libringbuffer" $(AM_CFLAGS)