[gtk/ebassi/cross-bundle] build: Don't use ld when cross-compiling




commit a1861112eea8cbee0d5a3b6d26b34f80b7bf4718
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Nov 4 13:41:35 2021 +0000

    build: Don't use ld when cross-compiling
    
    We can't guarantee anything on the target toolchain, in that case.

 gtk/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/meson.build b/gtk/meson.build
index e31b9e67ff..57e573a681 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -872,7 +872,7 @@ endif
 
 ld = find_program('ld', required : false)
 
-if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
+if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy.found() and 
objcopy_supports_add_symbol and ld.found()
   glib_compile_resources = find_program('glib-compile-resources')
 
   # Create the resource blob


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]