Fix: Add POPT_CFLAGS to lttng_CFLAGS
authorYannick Lamarre <ylamarre@efficios.com>
Fri, 22 Feb 2019 19:33:37 +0000 (14:33 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 29 Mar 2019 15:52:16 +0000 (11:52 -0400)
The generated makefile was ignoring POPT_CFLAGS when compiling
lttng, but was adding POPT_LIBS to lttng_LDADD. With this commit,
make now honors both settings for applications and tests.

Fixes: #1165
Signed-off-by: Yannick Lamarre <ylamarre@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/Makefile.am
tests/regression/kernel/Makefile.am

index 1a6977eb5fb38e4b6aebd40ba60f4575e79d7935..599170f4198f4fc9718fa67358fb73d447e2e62a 100644 (file)
@@ -25,6 +25,8 @@ lttng_SOURCES = command.h conf.c conf.h commands/start.c \
                                commands/help.c \
                                utils.c utils.h lttng.c
 
+lttng_CFLAGS = $(AM_CFLAGS) $(POPT_CFLAGS)
+
 lttng_LDADD = $(top_builddir)/src/lib/lttng-ctl/liblttng-ctl.la \
                        $(top_builddir)/src/common/libcommon.la \
                        $(top_builddir)/src/common/config/libconfig.la \
index c4ee443908cf6bc31c9510a47599bd72f55187d8..7c7d06fdc70840053c6d2f27cfb54ee97093496f 100644 (file)
@@ -5,7 +5,7 @@ EXTRA_DIST = test_event_basic test_all_events test_syscall \
 noinst_PROGRAMS = select_poll_epoll
 select_poll_epoll_SOURCES = select_poll_epoll.c
 select_poll_epoll_LDADD = $(POPT_LIBS)
-select_poll_epoll_CFLAGS = -fno-stack-protector -D_FORTIFY_SOURCE=0 $(AM_CFLAGS)
+select_poll_epoll_CFLAGS = $(POPT_CFLAGS) -fno-stack-protector -D_FORTIFY_SOURCE=0 $(AM_CFLAGS)
 
 all-local:
        @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
This page took 0.027657 seconds and 4 git commands to generate.