[vlc-devel] [PATCH 4/4] build: os2: enable X86ASM

KO Myung-Hun komh78 at gmail.com
Fri Aug 9 14:41:00 CEST 2019


---
 configure.ac                  | 2 ++
 extras/include/x86/x86inc.asm | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index ac65c75dc6..1da4588e6d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,6 +314,8 @@ case "${host_os}" in
     AC_LIBOBJ([freeaddrinfo])
     AC_LIBOBJ([gai_strerror])
     AC_CHECK_FUNCS([if_nametoindex])
+    X86ASMFLAGS="-f aout"
+    X86ASMDEFS="-DARCH_X86_32=1 -DARCH_X86_64=0 -DPREFIX"
     ;;
   *nacl*)
     SYS=nacl
diff --git a/extras/include/x86/x86inc.asm b/extras/include/x86/x86inc.asm
index b249f2a792..a5f48c54d3 100644
--- a/extras/include/x86/x86inc.asm
+++ b/extras/include/x86/x86inc.asm
@@ -84,6 +84,8 @@
         SECTION .rdata align=%1
     %elif WIN64
         SECTION .rdata align=%1
+    %elifidn __OUTPUT_FORMAT__,aout
+        SECTION .text
     %else
         SECTION .rodata align=%1
     %endif
-- 
2.22.0



More information about the vlc-devel mailing list