From: Ting-Wei Lan Date: Sun, 13 Mar 2022 07:14:12 +0000 (+0800) Subject: build: Don't use ld and objcopy when cross-compiling X-Git-Tag: archive/raspbian/4.6.5+ds-1+rpi1~1^2~19^2~3^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e8dd40cccab9372bc27fa507932dbec72cd4a572;p=gtk4.git build: Don't use ld and objcopy when cross-compiling These commands don't work when compiling Windows binaries on Linux. --- diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build index f594cd59b2..fa63dbbb9b 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 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 diff --git a/demos/widget-factory/meson.build b/demos/widget-factory/meson.build index 9a083eb1ac..2cfc9732dc 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 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