gst1-libav: Add a hack to get it to build on mips64
authorRosen Penev <redacted>
Mon, 22 Apr 2019 19:53:22 +0000 (12:53 -0700)
committerRosen Penev <redacted>
Mon, 22 Apr 2019 20:46:25 +0000 (13:46 -0700)
octeonplus is being passed to gcc, which is incorrect and causes build
failure. This works around it.

Signed-off-by: Rosen Penev <redacted>
multimedia/gst1-libav/Makefile

index b10d050ec09b5d0a8a6bf90229bf1f427b3fe8f0..24cd0ac5c6a228ffadb59c7b10cd004ad1d20a39 100644 (file)
@@ -142,8 +142,13 @@ LIBAV_CONFIGURE_DEMUXERS:=$(call FILTER_CONFIG,DEMUXER,demuxer,$(LIBAV_DEMUXERS)
 LIBAV_CONFIGURE_PARSERS:=$(call FILTER_CONFIG,PARSER,parser,$(LIBAV_PARSERS))
 LIBAV_CONFIGURE_PROTOCOLS:=$(call FILTER_CONFIG,PROTOCOL,protocol,$(LIBAV_PROTOCOLS))
 
-# Strip off FPU notation
-REAL_CPU_TYPE:=$(firstword $(subst +, ,$(CONFIG_CPU_TYPE)))
+#hack to build on mips64
+ifeq ($(CONFIG_CPU_TYPE),octeonplus)
+  REAL_CPU_TYPE:=octeon+
+else
+  # Strip off FPU notation
+  REAL_CPU_TYPE:=$(firstword $(subst +, ,$(CONFIG_CPU_TYPE)))
+endif
 
 CONFIGURE_ARGS += \
        --disable-Bsymbolic \
git clone https://git.99rst.org/PROJECT