[yocto] [meta-oic][PATCH] iotivity_1.2.1: Hotfix: Add ORIGIN rpath for binutils-2.29

Khem Raj raj.khem at gmail.com
Fri Sep 8 13:44:44 PDT 2017


On Fri, Sep 8, 2017 at 11:59 AM, Philippe Coval
<philippe.coval at osg.samsung.com> wrote:
> Set RPATH to ORIGIN as supported by gcc/ld (-rpath=\$ORIGIN)
>
> Observed issue on poky master was:
>
>   ld: warning: libconnectivity_abstraction.so, \
>   needed by out/yocto/x86_64/release/liboctbstack.so,
>   not found (try using -rpath or -rpath-link)
>   out/yocto/x86_64/release/liboctbstack.so: \
>   undefined reference to `coap_write_block_opt'
>
> Note that problem is also about to be fixed upstream directly in scons files.
>
> Bug: https://jira.iotivity.org/browse/IOT-2651
> Relate-to: https://gerrit.iotivity.org/gerrit/#/c/22355/
> Thanks-to: Mikko Ylinen <mikko.ylinen at intel.com>
> Signed-off-by: Philippe Coval <philippe.coval at osg.samsung.com>
> ---
>
> Origin: https://github.com/tizenteam/meta-oic/tree/sandbox/pcoval/on/master/review
>
>  recipes-core/iotivity/iotivity_1.2.1.bb | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-core/iotivity/iotivity_1.2.1.bb b/recipes-core/iotivity/iotivity_1.2.1.bb
> index c8fb8fd..bd7943e 100644
> --- a/recipes-core/iotivity/iotivity_1.2.1.bb
> +++ b/recipes-core/iotivity/iotivity_1.2.1.bb
> @@ -1,4 +1,4 @@
> -PR = "r1"
> +PR = "r2"

We have PR server these days. So drop this.

>  SUMMARY = "IoTivity framework and SDK sponsored by the Open Connectivity Foundation."
>  DESCRIPTION = "IoTivity is an open source software framework enabling seamless device-to-device connectivity to address the emerging needs of the Internet of Things."
>  HOMEPAGE = "https://www.iotivity.org/"
> @@ -36,6 +36,7 @@ SRC_URI += "${url_mbedtls};name=mbedtls;destsuffix=${S}/extlibs/mbedtls/mbedtls;
>
>  inherit pkgconfig scons
>
> +TARGET_LDFLAGS_append = " -Wl,-rpath-link=\\$$ORIGIN"
>

Can we use LDFLAGS here

>  python () {
>      IOTIVITY_TARGET_ARCH = d.getVar("TARGET_ARCH", True)
> --
> 1.9.1
>
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list