[oe-commits] [meta-openembedded] 09/38: efl: append -fPIC only for target builds

git at git.openembedded.org git at git.openembedded.org
Wed Mar 29 10:09:05 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 20967188ed07af191ad0d1036496b0ff13158344
Author: Martin Jansa <Martin.Jansa at gmail.com>
AuthorDate: Tue Mar 14 18:59:01 2017 +0100

    efl: append -fPIC only for target builds
    
    * since recent luajit improvements the efl-native build is failing with:
      http://errors.yoctoproject.org/Errors/Details/135811/
      TOPDIR/tmp-glibc/hosttools/ld:
      TOPDIR/tmp-glibc/work/x86_64-linux/efl-native/2_1.15.1-r0/recipe-sysroot-native/usr/lib/libluajit-5.1.a(lj_err.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
      TOPDIR/tmp-glibc/work/x86_64-linux/efl-native/2_1.15.1-r0/recipe-sysroot-native/usr/lib/libluajit-5.1.a:
      error adding symbols: Bad value
      collect2: error: ld returned 1 exit status
    
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-efl/recipes-efl/efl/efl_1.15.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-efl/recipes-efl/efl/efl_1.15.1.bb b/meta-efl/recipes-efl/efl/efl_1.15.1.bb
index 9f18531..561af3c 100644
--- a/meta-efl/recipes-efl/efl/efl_1.15.1.bb
+++ b/meta-efl/recipes-efl/efl/efl_1.15.1.bb
@@ -26,4 +26,4 @@ B = "${S}"
 
 #ld: error: modules/evas/image_loaders/png/bin_evas_evas_cserve2_slave-evas_image_load_png.o: requires unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
 #ld: error: modules/evas/image_loaders/png/bin_evas_evas_cserve2_slave-evas_image_load_png.o: requires unsupported dynamic reloc R_ARM_MOVW_ABS_NC; recompile with -fPIC
-CFLAGS += "-fPIC"
+CFLAGS_append_class-target = " -fPIC"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list