summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2023-09-29 01:36:23 +0200
committerKhem Raj <raj.khem@gmail.com>2023-09-28 21:44:26 -0700
commit708b3016e81a2a06883b0bb23bfedc8cb3e3239d (patch)
tree95e493c8d2dc41a9dad9f67d65cf816315f64480
parent3f378f792456cf28284e8a342730974957787241 (diff)
downloadmeta-openembedded-708b3016e81a2a06883b0bb23bfedc8cb3e3239d.tar.gz
libnfs: dont install libnfs-config.cmake
kodi uses its own FindNFS.cmake to find libnfs and succeeds with pkgconfig. If libnfs-config.cmake is found it will also be utilized (for win/mac?) which is generally bad for cross-compiling and causes the prefix to get hardcoded to /usr thus libnfs.so.5.0.2 is taken from the host machine Removing this file fixes: | aarch64-poky-linux-ld.lld: error: /usr/lib/libnfs.so.5.0.2 is incompatible with elf64-littleaarch64 | aarch64-poky-linux-clang++: error: linker command failed with exit code 1 (use -v to see invocation) | ninja: build stopped: subcommand failed. Add CFLAG workaround to fix compiling with clang complaining about old coding style while gcc doesn't care. Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb12
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb b/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb
index e0df18a50c..a025189b82 100644
--- a/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb
+++ b/meta-oe/recipes-connectivity/libnfs/libnfs_5.0.2.bb
@@ -3,10 +3,18 @@ HOMEPAGE = "https://github.com/sahlberg/libnfs"
3LICENSE = "LGPL-2.1-only & BSD-2-Clause & GPL-3.0-only" 3LICENSE = "LGPL-2.1-only & BSD-2-Clause & GPL-3.0-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=825301ba17efc9d188ee0abd4b924ada" 4LIC_FILES_CHKSUM = "file://COPYING;md5=825301ba17efc9d188ee0abd4b924ada"
5 5
6SRC_URI = "git://github.com/sahlberg/libnfs.git;protocol=https;branch=master \ 6SRC_URI = " \
7 file://0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch \ 7 git://github.com/sahlberg/libnfs.git;protocol=https;branch=master \
8 file://0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch \
8" 9"
9SRCREV = "40348f45d6beb8a8f50b6b63414a98fc1a061b7d" 10SRCREV = "40348f45d6beb8a8f50b6b63414a98fc1a061b7d"
10S = "${WORKDIR}/git" 11S = "${WORKDIR}/git"
11 12
12inherit cmake 13inherit cmake
14
15do_install:append() {
16 rm -f ${D}${libdir}/cmake/libnfs/libnfs-config.cmake
17}
18
19# Workaround for clang
20CFLAGS += "-Wno-implicit-function-declaration"