aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/use-base_libdir-instead-of-hardcoded-lib.patch
blob: c6e9465ac338f867306631825b91a39656a9ce94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 73fdc58ca4eb9e2f24d854b3af3a4e5daac5a33e Mon Sep 17 00:00:00 2001
From: Ting Liu <b28495@freescale.com>
Date: Fri, 22 Nov 2013 15:20:08 +0800
Subject: [PATCH] use base_libdir instead of hardcoded /lib

Upstream Status: Inappropriate [configuration]

Signed-off-by: Ting Liu <b28495@freescale.com>

---
 src/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index c7a8c79..c7e4e3c 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -143,10 +143,10 @@ install-target:
 	if [ ! -d $(BASE) ]; then mkdir $(BASE); fi
 	if [ ! -d $(BASE)/bin ]; then mkdir $(BASE)/bin; fi
 	if [ ! -d $(BASE)/include ]; then mkdir $(BASE)/include; fi
-	if [ ! -d $(BASE)/lib ]; then mkdir $(BASE)/lib; fi
+	if [ ! -d $(BASE)$(base_libdir) ]; then mkdir $(BASE)$(base_libdir); fi
 	cp $(EXES) $(BASE)/bin
 	cp $(INCS) $(BASE)/include
-	cp $O/lmbench.a $(BASE)/lib/libmbench.a
+	cp $O/lmbench.a $(BASE)$(base_libdir)
 	cd ../doc; env MAKEFLAGS="$(MAKEFLAGS)" make CC="${CC}" OS="${OS}" BASE="$(BASE)" install