Skip to contentSkip to conversation

gattlib: Explicitly disable Python support

PATCH New Peter Kjellerstedt 1 participant 1 message Dec 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gattlib: Explicitly disable Python support

Under some configuration, CMake may pick up the existence of python from the native recipe sysroot and use that when linking for target, resulting in the following error:

ld: .../recipe-sysroot-native/usr/lib/libpython3.10.so: error adding
symbols: file in wrong format

---
 meta-oe/recipes-connectivity/gattlib/gattlib_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-connectivity/gattlib/gattlib_git.bb +1 -0
index ecff79be4..3fe4c9404 100644
@@ -23,6 +23,7 @@ PACKAGECONFIG[examples] = "-DGATTLIB_BUILD_EXAMPLES=ON,-DGATTLIB_BUILD_EXAMPLES=
 # Set this to force use of DBus API if Bluez version is older than 5.42
 PACKAGECONFIG[force-dbus] = "-DGATTLIB_FORCE_DBUS=TRUE,-DGATTLIB_FORCE_DBUS=FALSE"
 
+EXTRA_OECMAKE += "-DGATTLIB_PYTHON_INTERFACE=OFF"
 EXTRA_OECMAKE += "-DGATTLIB_BUILD_DOCS=OFF"
 
 inherit pkgconfig cmake