[oe-commits] [meta-openembedded] 39/80: efivar: fix PIC not found

git at git.openembedded.org git at git.openembedded.org
Wed Aug 31 17:08:58 UTC 2016


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

commit 76393f94f8cc33e8eef15c21cc4c6070d5c4f11e
Author: Hongxu Jia <hongxu.jia at windriver.com>
AuthorDate: Tue Aug 23 03:21:50 2016 -0400

    efivar: fix PIC not found
    
    Previously, we tweak gcc option for gold linker to workaround
    link failure, it caused shared object dependencies missing
    while non gold linker:
    
    Print shared object dependencies in target:
    ......
    root at localhost:~# ldd /usr/sbin/efibootmgr
    	linux-vdso.so.1 (0x00007ffdbbbe4000)
    	libc.so.6 => /lib64/libc.so.6 (0x00007fce48355000)
    	PIC => not found
    	libefivar.so.0 => /usr/lib64/libefivar.so.0 (0x00007fce4813d000)
    	PIC => not found
    	libefiboot.so.0 => /usr/lib64/libefiboot.so.0 (0x00007fce47f33000)
    	/lib64/ld-linux-x86-64.so.2 (0x00007fce486f2000)
    	libdl.so.2 => /lib64/libdl.so.2 (0x00007fce47d2f000)
    ......
    
    The efivar dynamic library missing PIC option. Do not apply
    gold linker fix while non gold linker.
    
    Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-extended/efivar/efivar_0.24.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-extended/efivar/efivar_0.24.bb b/meta-oe/recipes-extended/efivar/efivar_0.24.bb
index 35412b6..efffde5 100644
--- a/meta-oe/recipes-extended/efivar/efivar_0.24.bb
+++ b/meta-oe/recipes-extended/efivar/efivar_0.24.bb
@@ -16,7 +16,7 @@ SRC_URI = "git://github.com/rhinstaller/efivar.git \
 "
 SRC_URI_append_class-target = " file://0001-efivar-fix-for-cross-compile.patch \
                                 file://0003-efivar-fix-for-cross-compile.patch \
-                                file://0004-fix-unknow-option-for-gold-linker.patch \
+                                ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', 'file://0004-fix-unknow-option-for-gold-linker.patch', '', d)} \
                               "
 SRC_URI_append_class-native = " file://fix-compile-failure-with-host-gcc-4.6.patch \
                                 file://allow-multi-definitions-for-native.patch \

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


More information about the Openembedded-commits mailing list