tests: put -no-pie in LDFLAGS instead of CFLAGS
[lttng-tools.git] / tests / utils / testapp / gen-syscall-events-callstack / Makefile.am
CommitLineData
9d16b343
MJ
1# SPDX-License-Identifier: GPL-2.0-only
2
591ee332 3AM_CFLAGS += -I$(top_srcdir)/tests/utils/
51c2fb6c 4AM_CFLAGS += -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
b75d311f
FD
5# The feature called Position Independent Execution (PIE) may be enabled by
6# default on some systems. Supporting this feature for this testapp would
7# increase the complexity of the testcases using this testapp as it would make
8# the addresses of functions unpredictable. So we prevent the linker from
9# using it by using the -no-pie option. If the -no-pie option is not
10# available, we assume that the PIE is not enabled by default so we do not
11# need to disable it.
12if LINKER_HAVE_NO_PIE_OPTION
234009e7 13AM_LDFLAGS += -no-pie
b75d311f 14endif
591ee332
FD
15
16noinst_PROGRAMS = gen-syscall-events-callstack
17gen_syscall_events_callstack_SOURCES = gen-syscall-events-callstack.c
18gen_syscall_events_callstack_LDADD = $(top_builddir)/tests/utils/libtestutils.la
This page took 0.032255 seconds and 5 git commands to generate.