blob: fa5e6dbda37f93e795c68929410b7a53a2389684 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 182a5d3dba3f440bbf35551da6d21ab1c990eb58 Mon Sep 17 00:00:00 2001
2From: Noor Ahsan <noor_ahsan@mentor.com>
3Date: Mon, 29 Aug 2011 16:17:51 +0000
4Subject: [PATCH] lmbench: Add version 3.0-a9 (initial recipe)
5
Patrick Williamsb48b7b42016-08-17 15:04:38 -05006In some cases the host may have too old of a ranlib to work. Since it's
7not exactly a great idea to not be using the cross ranlib anyhow, fix the
8Makefile so we can override ranlib and then override it
9
10Upstream-Status: Inappropriate [build system specific change]
Brad Bishop316dfdd2018-06-25 12:45:53 -040011
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012---
Brad Bishop316dfdd2018-06-25 12:45:53 -040013 src/Makefile | 3 ++-
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014 1 file changed, 2 insertions(+), 1 deletion(-)
15
Brad Bishop316dfdd2018-06-25 12:45:53 -040016diff --git a/src/Makefile b/src/Makefile
17index 4962815..c7a8c79 100644
18--- a/src/Makefile
19+++ b/src/Makefile
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020@@ -38,6 +38,7 @@ CC=`../scripts/compiler`
21 MAKE=`../scripts/make`
22 AR=ar
23 ARCREATE=cr
24+RANLIB=ranlib
25
26 # base of installation location
27 BASE=/usr/local
Brad Bishop316dfdd2018-06-25 12:45:53 -040028@@ -217,7 +218,7 @@ $O/lmbench : ../scripts/lmbench version.h
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029 $O/lmbench.a: $(LIBOBJS)
30 /bin/rm -f $O/lmbench.a
31 $(AR) $(ARCREATE) $O/lmbench.a $(LIBOBJS)
32- -ranlib $O/lmbench.a
33+ -$(RANLIB) $O/lmbench.a
34
35 $O/lib_timing.o : lib_timing.c $(INCS)
36 $(COMPILE) -c lib_timing.c -o $O/lib_timing.o