mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
3f378f7924
commit
708b3016e8
|
|
@ -3,10 +3,18 @@ HOMEPAGE = "https://github.com/sahlberg/libnfs"
|
|||
LICENSE = "LGPL-2.1-only & BSD-2-Clause & GPL-3.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=825301ba17efc9d188ee0abd4b924ada"
|
||||
|
||||
SRC_URI = "git://github.com/sahlberg/libnfs.git;protocol=https;branch=master \
|
||||
file://0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch \
|
||||
SRC_URI = " \
|
||||
git://github.com/sahlberg/libnfs.git;protocol=https;branch=master \
|
||||
file://0001-CMakeLists.txt-respect-CMAKE_INSTALL_LIBDIR-for-mult.patch \
|
||||
"
|
||||
SRCREV = "40348f45d6beb8a8f50b6b63414a98fc1a061b7d"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
do_install:append() {
|
||||
rm -f ${D}${libdir}/cmake/libnfs/libnfs-config.cmake
|
||||
}
|
||||
|
||||
# Workaround for clang
|
||||
CFLAGS += "-Wno-implicit-function-declaration"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user