[oe-commits] [meta-openembedded] 08/24: gpsd: make sure the recipe uses LDFLAGS

git at git.openembedded.org git at git.openembedded.org
Thu Sep 15 08:27:40 UTC 2016


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

commit c7137fd871bbc6a2e0c65a3e823d5abdc1feb9e6
Author: Nicolas Dechesne <nicolas.dechesne at linaro.org>
AuthorDate: Wed Sep 7 16:32:01 2016 +0100

    gpsd: make sure the recipe uses LDFLAGS
    
    since commit fa436aeb3242cbfdbbe16d448d45bce8eb5b74fd in OE core, we are seeing
    GNU_HASH QA failure when building gpsd. Since this commit we default to setting
    the wrong linker hash style to detect such errors in recipes.
    
    gpsd is using scons which does not take LDFLAGS into account, and LDFLAGS need
    to be passed from the environment, using LINKFLAGS variable.
    
    Signed-off-by: Nicolas Dechesne <nicolas.dechesne at linaro.org>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb
index 822fc24..537facc 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.14.bb
@@ -55,12 +55,14 @@ do_compile_prepend() {
     export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
     export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
     export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
+    export LINKFLAGS="${LDFLAGS}"
 }
 
 do_install() {
     export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
     export PKG_CONFIG="PKG_CONFIG_SYSROOT_DIR=\"${PKG_CONFIG_SYSROOT_DIR}\" pkg-config"
     export STAGING_PREFIX="${STAGING_DIR_HOST}/${prefix}"
+    export LINKFLAGS="${LDFLAGS}"
 
     export DESTDIR="${D}"
     # prefix is used for RPATH and DESTDIR/prefix for instalation

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


More information about the Openembedded-commits mailing list