From ad84c1e24b0860d3eb68899c7b757edd85162e9f Mon Sep 17 00:00:00 2001 From: heitbaum Date: Sun, 8 Aug 2021 16:03:15 +1000 Subject: [PATCH] toolchain: always use cross compile and exe_wrapper with meson This needs to be done even on target=host due to libraries of the host being newer than the target. This fixes tests where target glibc is different from host glibc and meson tries to check existance of 2 functions which are in GLIBC_2.34 in this example. It is also correct functionality, as we will never be building for the host the compile is on. `Program stderr: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/build/glib-37e5dfd3a2ced10c395b38702ae15e0e128e457b/.x86_64-libreelec-linux-gnu/meson-private/tmpg908xy4s/output.exe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-10.0-devel/build/glib-37e5dfd3a2ced10c395b38702ae15e0e128e457b/.x86_64-libreelec-linux-gnu/meson-private/tmpg908xy4s/output.exe)` --- config/functions | 1 + 1 file changed, 1 insertion(+) diff --git a/config/functions b/config/functions index 40a353e242..d5e97974c9 100644 --- a/config/functions +++ b/config/functions @@ -524,6 +524,7 @@ $(python3 -c "import os; print('cpp_args = {}'.format([x for x in os.getenv('TAR $(python3 -c "import os; print('cpp_link_args = {}'.format([x for x in os.getenv('TARGET_LDFLAGS').split()]))") [properties] +needs_exe_wrapper = true root = '$SYSROOT_PREFIX/usr' ${!properties} EOF