build: Avoid objcopy on arm
authorMatthias Clasen <mclasen@redhat.com>
Mon, 14 Mar 2022 12:44:09 +0000 (08:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 14 Mar 2022 12:44:09 +0000 (08:44 -0400)
The trickery we do with objcopy and ld to speed up
resource inclusion does not seem to work right on
32bit Arm, so just skip it there.

Fixes: #4757, #4748, #4752
demos/gtk-demo/meson.build
demos/widget-factory/meson.build
gtk/meson.build

index fa63dbbb9be1a10999d5de424d8370f2519e1c1a..1347baf2aa190ae3b0968bfc5435b281544cd55a 100644 (file)
@@ -160,7 +160,7 @@ endif
 
 ld = find_program('ld', required : false)
 
-if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
+if not meson.is_cross_build() and build_machine.cpu_family() != 'arm' 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
index 2cfc9732dc8f58099e98dc5d2108fa53279ed332..550eb09bd9ce2537bb29b1083a92c21333eaac8a 100644 (file)
@@ -8,7 +8,7 @@ endif
 
 ld = find_program('ld', required : false)
 
-if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
+if not meson.is_cross_build() and build_machine.cpu_family() != 'arm' 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
index 44fd1b82418f9164f4b3385534f97606e946e980..3a8457ada7aa5c7ff7e13550f9efde23ac0df5f4 100644 (file)
@@ -872,7 +872,7 @@ endif
 
 ld = find_program('ld', required : false)
 
-if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
+if not meson.is_cross_build() and build_machine.cpu_family() != 'arm' 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