nasm: require 2.14 with -DCHROMIUM
authorJohann <johannkoenig@google.com>
Tue, 31 Mar 2020 06:35:24 +0000 (15:35 +0900)
committerJohann <johannkoenig@google.com>
Tue, 31 Mar 2020 06:36:39 +0000 (15:36 +0900)
BUG=webm:1679

Change-Id: I75b1f860d111febf0aabe38b89d845ef296728a4

vpx_ports/x86_abi_support.asm

index 708fa10..dcdc1f8 100644 (file)
 ;    http://www.tortall.net/projects/yasm/ticket/236
 ;
 %ifdef CHROMIUM
+  %ifdef __NASM_VER__
+    %if __NASM_VERSION_ID__ < 0x020e0000 ; 2.14
+      ; nasm < 2.14 does not support :private_extern directive
+      %fatal Must use nasm 2.14 or newer
+    %endif
+  %endif
+
   %ifidn   __OUTPUT_FORMAT__,elf32
     %define PRIVATE :hidden
   %elifidn __OUTPUT_FORMAT__,elf64