Skip to contentSkip to conversation

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

PATCH New Chunrong Guo 1 participant 1 message Sep 27, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 perf : fix perf of cross-compile for PowerPC 64bit targets

*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);

---
 meta/recipes-kernel/perf/perf.bb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/recipes-kernel/perf/perf.bb +1 -0
index 269069f..fa6b8b9 100644
@@ -77,6 +77,7 @@ EXTRA_OEMAKE = \
 		'
 
 EXTRA_OEMAKE += "\
+	'CFLAGS=${CFLAGS} -fPIC' \
 	'prefix=${prefix}' \
 	'bindir=${bindir}' \
 	'sharedir=${datadir}' \
Signature · 1 line
1.7.5.4