From fe810109ecb24b6829f4719c3d33053b80057683 Mon Sep 17 00:00:00 2001 From: andreeco Date: Thu, 9 Oct 2025 23:34:38 +0200 Subject: [PATCH] Set install dirs explicitly for libcbor libraries and headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change: Set -DCMAKE_INSTALL_LIBDIR=lib and -DCMAKE_INSTALL_INCLUDEDIR=include to ensure libraries and headers are installed in standard locations on all platforms. Without this patch, cross-building libfido2 (and other dependents) fails because libcbor libraries and pkg-config files are not found in ${prefix}/lib; the fix ensures they’re installed in the correct location for all platforms. --- L/libcbor/build_tarballs.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/L/libcbor/build_tarballs.jl b/L/libcbor/build_tarballs.jl index b455133d3a7..ed35e28986b 100644 --- a/L/libcbor/build_tarballs.jl +++ b/L/libcbor/build_tarballs.jl @@ -15,8 +15,8 @@ options=( -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} -DCMAKE_PREFIX_PATH=${prefix} -DCMAKE_INSTALL_PREFIX=${prefix} - -DCMAKE_INSTALL_LIBDIR=${libdir} - -DCMAKE_INSTALL_INCLUDEDIR=${includedir} + -DCMAKE_INSTALL_LIBDIR=lib + -DCMAKE_INSTALL_INCLUDEDIR=include -DBUILD_SHARED_LIBS=ON -DWITH_EXAMPLES=OFF )