File mupen64plus-binutils-2_29.patch of Package mupen64plus

diff -Nru mupen64plus-bundle-src-2.5.9.orig/source/mupen64plus-core/projects/unix/Makefile mupen64plus-bundle-src-2.5.9/source/mupen64plus-core/projects/unix/Makefile
--- mupen64plus-bundle-src-2.5.9.orig/source/mupen64plus-core/projects/unix/Makefile	2019-02-10 19:25:29.000000000 +0100
+++ mupen64plus-bundle-src-2.5.9/source/mupen64plus-core/projects/unix/Makefile	2019-04-10 08:40:29.508072103 +0200
@@ -653,15 +653,7 @@
     $(SRCDIR)/debugger/dbg_breakpoints.c
   LDLIBS += -lopcodes -lbfd
 
-  # UGLY libopcodes version check (we check for > 2.28)
-  LIBOPCODES_VERSION := $(shell $(STRINGS) --version | head -n1 | rev | cut -d ' ' -f1 | rev)
-  LIBOPCODES_MAJOR := $(shell echo $(LIBOPCODES_VERSION) | cut -f1 -d.)
-  LIBOPCODES_MINOR := $(shell echo $(LIBOPCODES_VERSION) | cut -f2 -d.)
-  LIBOPCODES_POINT := $(shell echo $(LIBOPCODES_VERSION) | cut -f3 -d.)
-  LIBOPCODES_GE_2_29 := $(shell [ $(LIBOPCODES_MAJOR) -gt 2 -o \( $(LIBOPCODES_MAJOR) -eq 2 -a $(LIBOPCODES_MINOR) -ge 29 \) -o \( $(LIBOPCODES_MAJOR) -eq 2 -a $(LIBOPCODES_MINOR) -eq 28 -a $(LIBOPCODES_POINT) -ge 1 \) ] && echo true)
-  ifeq ($(LIBOPCODES_GE_2_29),true)
-    CFLAGS += -DUSE_LIBOPCODES_GE_2_29
-  endif
+  CFLAGS += -DUSE_LIBOPCODES_GE_2_29
 endif
 
 ifeq ($(OPENCV), 1)
openSUSE Build Service is sponsored by