X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-syscall-events-callstack%2FMakefile.am;h=4d171ba80c70ed087642ccbd43f34c5b50aa9ccc;hp=6e075a0dffd1c78a17397d3c9b3b6b16191ba9b7;hb=701a99d1cf638273320db3ce52cf52816129d95a;hpb=591ee332c58988222f58c6eadb047890707e7a35 diff --git a/tests/utils/testapp/gen-syscall-events-callstack/Makefile.am b/tests/utils/testapp/gen-syscall-events-callstack/Makefile.am index 6e075a0df..4d171ba80 100644 --- a/tests/utils/testapp/gen-syscall-events-callstack/Makefile.am +++ b/tests/utils/testapp/gen-syscall-events-callstack/Makefile.am @@ -1,5 +1,15 @@ AM_CFLAGS += -I$(top_srcdir)/tests/utils/ -AM_CFLAGS += -fno-omit-frame-pointer -no-pie +AM_CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer +# The feature called Position Independent Execution (PIE) may be enabled by +# default on some systems. Supporting this feature for this testapp would +# increase the complexity of the testcases using this testapp as it would make +# the addresses of functions unpredictable. So we prevent the linker from +# using it by using the -no-pie option. If the -no-pie option is not +# available, we assume that the PIE is not enabled by default so we do not +# need to disable it. +if LINKER_HAVE_NO_PIE_OPTION +AM_CFLAGS += -no-pie +endif noinst_PROGRAMS = gen-syscall-events-callstack gen_syscall_events_callstack_SOURCES = gen-syscall-events-callstack.c