[oe-commits] Richard Purdie : perf: Ensure we general PIC code to avoid build failures

git at git.openembedded.org git at git.openembedded.org
Tue Aug 27 11:21:03 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: 9958653b2bf9e43312a39c6b89ff0ca1cc46995c
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9958653b2bf9e43312a39c6b89ff0ca1cc46995c

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Tue Aug 27 11:30:34 2013 +0000

perf: Ensure we general PIC code to avoid build failures

Without this we see relocation errors on mips with 3.10. This should be
safe to be included in general.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-kernel/perf/perf.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 844e880..a78fc05 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -73,7 +73,7 @@ EXTRA_OEMAKE = \
 # don't override it, it'll add -m32/-m64 itself). For LDFLAGS, it was failing
 # to find bfd symbols.
 EXTRA_OEMAKE += "\
-	'CFLAGS=${CFLAGS}' \
+	'CFLAGS=${CFLAGS} -fPIC' \
 	'LDFLAGS=${LDFLAGS} -lpthread -lrt -lelf -lm -lbfd' \
 	\
 	'prefix=${prefix}' \



More information about the Openembedded-commits mailing list