File likwid-libdir.patch of Package likwid

diff --git a/Makefile b/Makefile
index eecd4e9..dd0579b 100644
--- a/Makefile
+++ b/Makefile
@@ -330,10 +330,10 @@ install:
 	@cp -f src/includes/*  $(PREFIX)/include/likwid
 	@cp -f GCC/perfmon_group_types.h  $(PREFIX)/include/likwid
 	$(FORTRAN_INSTALL)
-	@echo "===> INSTALL libraries to $(PREFIX)/lib"
-	@mkdir -p $(PREFIX)/lib
-	@cp -f $(LIKWID_LIB)*  $(PREFIX)/lib
-	@chmod 755 $(PREFIX)/lib/$(PINLIB)
+	@echo "===> INSTALL libraries to $(LIBDIR)"
+	@mkdir -p $(LIBDIR)
+	@cp -f $(LIKWID_LIB)*  $(LIBDIR)
+	@chmod 755 $(LIBDIR)/$(PINLIB)
 	@echo "===> INSTALL filters to $(LIKWIDFILTERPATH)"
 	@mkdir -p $(LIKWIDFILTERPATH)
 	@cp -f filters/*  $(LIKWIDFILTERPATH)
diff --git a/config.mk b/config.mk
index 2c3f3be..480b105 100644
--- a/config.mk
+++ b/config.mk
@@ -43,6 +43,6 @@ VERSION = 3
 RELEASE = 1
 DATE    = 12.2.2014
 
-LIBLIKWIDPIN = $(abspath $(PREFIX)/lib/liblikwidpin.so)
-LIKWIDFILTERPATH = $(abspath $(PREFIX)/share/likwid)
+LIBLIKWIDPIN = $(LIBDIR)/liblikwidpin.so
+LIKWIDFILTERPATH = $(PREFIX)/share/likwid
openSUSE Build Service is sponsored by