]> code.ossystems Code Review - openembedded-core.git/commit
systemtap: Systemtap can not be build w -O0 optimization
authorMark Hatle <mark.hatle@windriver.com>
Mon, 24 Jun 2013 14:44:56 +0000 (09:44 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jun 2013 16:43:42 +0000 (17:43 +0100)
commit9ceebb966e5294a270222475ab6317dcae2952fa
treee45a349ba50525de8637774bbe211580557796b4
parentbb3201b9c21b29604eb06b03e935d53210a7b762
systemtap: Systemtap can not be build w -O0 optimization

Systemtap will fail with:

../usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
|  #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)

Use the same technique that eglibc uses to catch and correct the optimization
level, changing to -O2.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-kernel/systemtap/systemtap_git.inc