From 3fe4626e3c344db38d4f8de6e5075018010afe7e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 1 Jul 2020 18:19:09 +0530 Subject: [PATCH] deinterlace: Fix build on x32 Need to pass `-f elfx32` to nasm in that case. Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/757 Part-of: --- gst/deinterlace/meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/deinterlace/meson.build b/gst/deinterlace/meson.build index 7ba4e2a100..5557e3d845 100644 --- a/gst/deinterlace/meson.build +++ b/gst/deinterlace/meson.build @@ -62,7 +62,11 @@ if have_nasm and host_cpu == 'x86_64' elif host_system.endswith('bsd') asm_outformat = 'aoutb' else - asm_outformat = 'elf64' + if cc.get_define('__ILP32__') == '1' + asm_outformat = 'elfx32' + else + asm_outformat = 'elf64' + endif endif asm_x = files('x86/yadif.asm', 'x86/x86inc.asm')