$OpenBSD: patch-gst-libs_ext_libav_libavcodec_arm_asm_S,v 1.1 2018/09/15 08:08:09 ajacoutot Exp $

build: check if AS supports the '.func' directive

Index: gst-libs/ext/libav/libavcodec/arm/asm.S
--- gst-libs/ext/libav/libavcodec/arm/asm.S.orig
+++ gst-libs/ext/libav/libavcodec/arm/asm.S
@@ -26,6 +26,12 @@
 #   define ELF @
 #endif
 
+#if HAVE_AS_FUNC
+# define FUNC
+#else
+# define FUNC @
+#endif
+
         .syntax unified
 
 .macro  require8 val=1
@@ -39,7 +45,7 @@ ELF     .eabi_attribute 25, \val
 .macro  function name, export=0
     .macro endfunc
 ELF     .size   \name, . - \name
-        .endfunc
+FUNC    .endfunc
         .purgem endfunc
     .endm
         .text
@@ -48,7 +54,7 @@ ELF     .size   \name, . - \name
 EXTERN_ASM\name:
     .endif
 ELF     .type   \name, %function
-        .func   \name
+FUNC    .func   \name
 \name:
 .endm
 
