summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2023-10-26 20:43:35 +0200
committerKhem Raj <raj.khem@gmail.com>2023-10-26 12:00:14 -0700
commitc083e0569ad80d11b4f5cfdfa89acdd4264d8152 (patch)
tree258b71594e52910ae630e9ed137f0a06fe2b90b1
parent722720eaebd591fef20961d5ef05ef610328a2a9 (diff)
downloadmeta-openembedded-c083e0569ad80d11b4f5cfdfa89acdd4264d8152.tar.gz
libwebsockets: Support building for native
This is needed to be able to build mosquitto-native. The dependency on libcap when building for native is needed because cmake will pick up the existence of libcap from the host, but then the build fails if it is not available in the sysroot. Unfortunately, there does not seem to be any way to explicitly tell cmake to not build with libcap. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb
index 5e6069fb81..95c2854fa6 100644
--- a/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb
+++ b/meta-oe/recipes-connectivity/libwebsockets/libwebsockets_4.3.2.bb
@@ -4,6 +4,7 @@ LICENSE = "MIT & Zlib & BSD-3-Clause & Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=382bfdf329e774859fd401eaf850d29b" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=382bfdf329e774859fd401eaf850d29b"
5 5
6DEPENDS = "zlib" 6DEPENDS = "zlib"
7DEPENDS:append:class-native = " libcap-native"
7 8
8S = "${WORKDIR}/git" 9S = "${WORKDIR}/git"
9SRCREV = "b0a749c8e7a8294b68581ce4feac0e55045eb00b" 10SRCREV = "b0a749c8e7a8294b68581ce4feac0e55045eb00b"
@@ -61,3 +62,5 @@ RDEPENDS:${PN}-dev += " ${@bb.utils.contains('PACKAGECONFIG', 'static', '${PN}-s
61 62
62# Avoid absolute paths to end up in the sysroot. 63# Avoid absolute paths to end up in the sysroot.
63SSTATE_SCAN_FILES += "*.cmake" 64SSTATE_SCAN_FILES += "*.cmake"
65
66BBCLASSEXTEND = "native"