From 016fbd0830cb98a21d2769103fa1d0520ffc818f Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 22 Apr 2019 12:53:22 -0700 Subject: [PATCH] gst1-libav: Add a hack to get it to build on mips64 octeonplus is being passed to gcc, which is incorrect and causes build failure. This works around it. Signed-off-by: Rosen Penev --- multimedia/gst1-libav/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/multimedia/gst1-libav/Makefile b/multimedia/gst1-libav/Makefile index b10d050ec..24cd0ac5c 100644 --- a/multimedia/gst1-libav/Makefile +++ b/multimedia/gst1-libav/Makefile @@ -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 \