aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2018-05-10 22:29:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-05-15 10:00:31 +0100
commit2f8fdf684a5ed52412ee220b55508d42a1888762 (patch)
tree8205d5ed57aee32293f95a6845febce8ad3843d0 /meta/recipes-devtools/strace
parentabd809670ea4048551d20c11da95203536250001 (diff)
downloadopenembedded-core-contrib-2f8fdf684a5ed52412ee220b55508d42a1888762.tar.gz
strace: remove -fno-omit-frame-pointer from DEBUG_OPTIMIZATION when ptest is enabled
* otherwise strace-4.22/tests/inject-nf.c fails to build as discussed here: http://lists.openembedded.org/pipermail/openembedded-core/2018-May/150647.html Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-devtools/strace')
-rw-r--r--meta/recipes-devtools/strace/strace_4.22.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace_4.22.bb b/meta/recipes-devtools/strace/strace_4.22.bb
index 196c9d8587..947b3f7bf6 100644
--- a/meta/recipes-devtools/strace/strace_4.22.bb
+++ b/meta/recipes-devtools/strace/strace_4.22.bb
@@ -23,6 +23,9 @@ inherit autotools ptest bluetooth
EXTRA_OECONF += "--enable-mpers=no"
CFLAGS_append_libc-musl = " -Dsigcontext_struct=sigcontext"
+# otherwise strace-4.22/tests/inject-nf.c fails to build as discussed here:
+# http://lists.openembedded.org/pipermail/openembedded-core/2018-May/150647.html
+DEBUG_OPTIMIZATION_remove = "${@bb.utils.contains('PTEST_ENABLED', '1', '-fno-omit-frame-pointer', '', d)}"
RDEPENDS_${PN}-ptest += "make coreutils grep gawk sed"