From: Michael Jeanson Date: Thu, 18 Mar 2021 17:57:13 +0000 (-0400) Subject: fix: don't override the project wide AM_CPPFLAGS X-Git-Tag: v2.13.0-rc1~231 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0a6c2d7c8b98a3fea54bf0f974b6d192b02d8898;p=lttng-ust.git fix: don't override the project wide AM_CPPFLAGS Fix some makefiles imported after we switched to a global standardized include path in AM_CPPFLAGS. Change-Id: Ibb02293f86848b968c4fe190b137e562f94e83b4 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/libcounter/Makefile.am b/libcounter/Makefile.am index 6407d7ad..eeeb86ce 100644 --- a/libcounter/Makefile.am +++ b/libcounter/Makefile.am @@ -1,6 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-only -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include AM_CFLAGS += -fno-strict-aliasing noinst_LTLIBRARIES = libcounter.la diff --git a/libcounter/counter.c b/libcounter/counter.c index d2b7032a..fae7266c 100644 --- a/libcounter/counter.c +++ b/libcounter/counter.c @@ -5,7 +5,6 @@ * Copyright (C) 2020 Mathieu Desnoyers */ -#define _GNU_SOURCE #include #include "counter.h" #include "counter-internal.h" diff --git a/libcounter/shm.c b/libcounter/shm.c index d9bccafc..70651e6a 100644 --- a/libcounter/shm.c +++ b/libcounter/shm.c @@ -5,7 +5,6 @@ */ #define _LGPL_SOURCE -#include #include "shm.h" #include #include diff --git a/libcounter/smp.c b/libcounter/smp.c index 314bc752..edec4a4b 100644 --- a/libcounter/smp.c +++ b/libcounter/smp.c @@ -5,7 +5,6 @@ * Copyright (C) 2019 Michael Jeanson */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include diff --git a/libmsgpack/Makefile.am b/libmsgpack/Makefile.am index 03acdc2d..53b16842 100644 --- a/libmsgpack/Makefile.am +++ b/libmsgpack/Makefile.am @@ -1,6 +1,5 @@ # SPDX-License-Identifier: LGPL-2.1-only -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include AM_CFLAGS += -fno-strict-aliasing noinst_LTLIBRARIES = libmsgpack.la diff --git a/libmsgpack/msgpack.c b/libmsgpack/msgpack.c index 918be8e5..6f31e8fb 100644 --- a/libmsgpack/msgpack.c +++ b/libmsgpack/msgpack.c @@ -4,7 +4,6 @@ * Copyright (C) 2020 Francis Deslauriers */ -#define _GNU_SOURCE #define _LGPL_SOURCE #include diff --git a/tests/unit/libmsgpack/Makefile.am b/tests/unit/libmsgpack/Makefile.am index 0fb0b447..5959947d 100644 --- a/tests/unit/libmsgpack/Makefile.am +++ b/tests/unit/libmsgpack/Makefile.am @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-2.1-only -AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/tests/utils +AM_CPPFLAGS += -I$(top_srcdir)/tests/utils noinst_PROGRAMS = test_msgpack test_msgpack_SOURCES = test_msgpack.c