Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | From 182a5d3dba3f440bbf35551da6d21ab1c990eb58 Mon Sep 17 00:00:00 2001 |
| 2 | From: Noor Ahsan <noor_ahsan@mentor.com> |
| 3 | Date: Mon, 29 Aug 2011 16:17:51 +0000 |
| 4 | Subject: [PATCH] lmbench: Add version 3.0-a9 (initial recipe) |
| 5 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 6 | In some cases the host may have too old of a ranlib to work. Since it's |
| 7 | not exactly a great idea to not be using the cross ranlib anyhow, fix the |
| 8 | Makefile so we can override ranlib and then override it |
| 9 | |
| 10 | Upstream-Status: Inappropriate [build system specific change] |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 11 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 12 | --- |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 13 | src/Makefile | 3 ++- |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 15 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | diff --git a/src/Makefile b/src/Makefile |
| 17 | index 4962815..c7a8c79 100644 |
| 18 | --- a/src/Makefile |
| 19 | +++ b/src/Makefile |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | @@ -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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | @@ -217,7 +218,7 @@ $O/lmbench : ../scripts/lmbench version.h |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | $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 |