deinterlace: Disable nasm support on x32
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 2 Jul 2020 02:23:14 +0000 (07:53 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 2 Jul 2020 02:23:14 +0000 (07:53 +0530)
The assembly assumes pointers are 64-bit, so just disable it.

Closes https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/757

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/660>

gst/deinterlace/meson.build
meson.build

index 5557e3d..7ba4e2a 100644 (file)
@@ -62,11 +62,7 @@ if have_nasm and host_cpu == 'x86_64'
   elif host_system.endswith('bsd')
     asm_outformat = 'aoutb'
   else
-    if cc.get_define('__ILP32__') == '1'
-      asm_outformat = 'elfx32'
-    else
-      asm_outformat = 'elf64'
-    endif
+    asm_outformat = 'elf64'
   endif
   asm_x = files('x86/yadif.asm',
                 'x86/x86inc.asm')
index 8822de5..509fb8c 100644 (file)
@@ -341,6 +341,8 @@ host_cpu = host_machine.cpu_family()
 if host_cpu == 'x86_64'
   if cc.get_id() == 'msvc'
     message('Nasm disabled on MSVC')
+  elif cc.get_define('__ILP32__') == '1'
+    message('Nasm disabled on x32')
   else
     asm_option = get_option('asm')
     nasm = find_program('nasm', native: true, required: asm_option)