Patchwork perf : fix perf of cross-compile for PowerPC 64bit targets

login
register
mail settings
Submitter chunrong guo
Date Sept. 27, 2013, 3:06 a.m.
Message ID <1380251189-21193-1-git-send-email-B40290@freescale.com>
Download mbox | patch
Permalink /patch/59063/
State New
Headers show

Comments

chunrong guo - Sept. 27, 2013, 3:06 a.m.
*fix perf build issue on powerpc 64bit targets
    |error information:
    | tests/attr.c: In function 'store_event':
    | tests/attr.c:71:4: error: format '%llu' expects argument of type 'long long unsigned int',
    | but argument 6 has type '__u64' [-Werror=format=]
    | attr->type, attr->config, fd);

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 meta/recipes-kernel/perf/perf.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 269069f..fa6b8b9 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -77,6 +77,7 @@  EXTRA_OEMAKE = \
 		'
 
 EXTRA_OEMAKE += "\
+	'CFLAGS=${CFLAGS} -fPIC' \
 	'prefix=${prefix}' \
 	'bindir=${bindir}' \
 	'sharedir=${datadir}' \