From f9ea06cfc0a5b17d52e2372da0f5320f921b45a4 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Mon, 9 Apr 2018 21:42:10 +0000 Subject: [PATCH] pluginlib, socketcan-interface: disable gold * when gold is used the build fails because of undefined reference from libclass_loader.so * it should be fixed properly, this is just temporary work around for following build failures: http://errors.yoctoproject.org/Errors/Details/174718/ http://errors.yoctoproject.org/Errors/Details/174715/ * relates to: https://github.com/bmwcarit/meta-ros/issues/496 Signed-off-by: Martin Jansa --- recipes-ros/pluginlib/pluginlib_1.10.7.bb | 3 +++ recipes-ros/ros-canopen/socketcan-interface_0.6.8.bb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/recipes-ros/pluginlib/pluginlib_1.10.7.bb b/recipes-ros/pluginlib/pluginlib_1.10.7.bb index aa73b5c..af3fe48 100644 --- a/recipes-ros/pluginlib/pluginlib_1.10.7.bb +++ b/recipes-ros/pluginlib/pluginlib_1.10.7.bb @@ -11,3 +11,6 @@ SRC_URI[md5sum] = "e767bf812d74a115efb5855147e2899b" SRC_URI[sha256sum] = "88f7c45b6a27b8d890daa897974b0501458afcc253149c0523554c7f9b80be3b" inherit catkin + +# libclass_loader.so: error: undefined reference to 'pthread_mutexattr_destroy', 'pthread_mutexattr_settype', 'pthread_mutexattr_init' +LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}" diff --git a/recipes-ros/ros-canopen/socketcan-interface_0.6.8.bb b/recipes-ros/ros-canopen/socketcan-interface_0.6.8.bb index 0f080ca..34a9e0c 100644 --- a/recipes-ros/ros-canopen/socketcan-interface_0.6.8.bb +++ b/recipes-ros/ros-canopen/socketcan-interface_0.6.8.bb @@ -10,3 +10,6 @@ require ros-canopen.inc SRC_URI += "file://0001-explicitly-include-iostream-to-compile-with-boost-1..patch;striplevel=2" SRC_URI += "file://0001-find-and-link-the-thread-library-properly.patch;striplevel=2" SRC_URI += "file://0001-compile-also-with-boost-1.66.0.patch;striplevel=2" + +# libclass_loader.so: error: undefined reference to 'pthread_mutexattr_destroy', 'pthread_mutexattr_settype', 'pthread_mutexattr_init' +LDFLAGS_append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"