File makefile-lib64.patch of Package trace-cmd

From: Tony Jones <tonyj@suse.de>
Subject: install 64bit libs into /usr/lib64
Upstream: no

 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index d3dfa11d4867..dd5a5c80d09f 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,11 @@ img_install = $(prefix)/share/kernelshark/html/images
 img_install_SQ = '$(subst ','\'',$(img_install))'
 libdir ?= $(prefix)/lib
 libdir_SQ = '$(subst ','\'',$(libdir))'
+ifeq ($(prefix),/usr)
+  ifeq ($(shell getconf LONG_BIT),64)
+    libdir = ${prefix}/lib64
+  endif
+endif
 includedir = $(prefix)/include/trace-cmd
 includedir_SQ = '$(subst ','\'',$(includedir))'
openSUSE Build Service is sponsored by