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.yli...@intel.com> Signed-off-by: Philippe Coval <philippe.co...@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" 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" python () { IOTIVITY_TARGET_ARCH = d.getVar("TARGET_ARCH", True) -- 1.9.1 _______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev