From 016f04504bc66d2cb6b082685c85ce817c25df78 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 4 Feb 2020 16:04:41 -0500 Subject: [PATCH 1/1] Fix: force the use of our _FORTIFY_SOURCE definition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Some toolset (ubuntu) already defined the _FORTIFY_SOURCE. This removes the warning we see if this is the case. Unset the variable and reset it. The warning: make[3]: Entering directory '/home/joraj/lttng/master/lttng-tools/tests/regression/kernel' CC select_poll_epoll-select_poll_epoll.o : warning: "_FORTIFY_SOURCE" redefined : note: this is the location of the previous definition CCLD select_poll_epoll Signed-off-by: Jonathan Rajotte Change-Id: I2fa0482afa8941705a992f62a2e63657ea9e2b87 Signed-off-by: Jérémie Galarneau --- tests/regression/kernel/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/kernel/Makefile.am b/tests/regression/kernel/Makefile.am index 28e0303e2..8547efd67 100644 --- a/tests/regression/kernel/Makefile.am +++ b/tests/regression/kernel/Makefile.am @@ -10,7 +10,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 = $(POPT_CFLAGS) -fno-stack-protector -D_FORTIFY_SOURCE=0 $(AM_CFLAGS) +select_poll_epoll_CFLAGS = $(POPT_CFLAGS) -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 $(AM_CFLAGS) all-local: @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ -- 2.34.1