[yocto] [meta-oic][PATCH v2] iotivity_1.2.1: Hotfix: Add ORIGIN rpath for binutils-2.29
Philippe Coval
philippe.coval at osg.samsung.com
Sat Sep 9 23:32:45 PDT 2017
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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/recipes-core/iotivity/iotivity_1.2.1.bb b/recipes-core/iotivity/iotivity_1.2.1.bb
index c8fb8fd..33adb9a 100644
--- a/recipes-core/iotivity/iotivity_1.2.1.bb
+++ b/recipes-core/iotivity/iotivity_1.2.1.bb
@@ -53,6 +53,7 @@ python () {
IOTIVITY_BIN_DIR = "/opt/${PN}"
IOTIVITY_BIN_DIR_D = "${D}${IOTIVITY_BIN_DIR}"
+LDFLAGS_append = " -Wl,-rpath-link=\\$$ORIGIN"
do_compile_prepend() {
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}"
--
1.9.1
More information about the yocto
mailing list