[gtk/gtk-4-6] build: Avoid objcopy on arm
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-4-6] build: Avoid objcopy on arm
- Date: Wed, 16 Mar 2022 02:20:18 +0000 (UTC)
commit 3223f3e3b8d946917e12ca725ac8df175533ffb1
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 14 08:44:09 2022 -0400
build: Avoid objcopy on arm
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 | 2 +-
demos/widget-factory/meson.build | 2 +-
gtk/meson.build | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build
index fa63dbbb9b..1347baf2aa 100644
--- a/demos/gtk-demo/meson.build
+++ b/demos/gtk-demo/meson.build
@@ -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
diff --git a/demos/widget-factory/meson.build b/demos/widget-factory/meson.build
index 2cfc9732dc..550eb09bd9 100644
--- a/demos/widget-factory/meson.build
+++ b/demos/widget-factory/meson.build
@@ -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
diff --git a/gtk/meson.build b/gtk/meson.build
index 44fd1b8241..3a8457ada7 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]