Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | In some cases the host may have too old of a ranlib to work. Since it's |
| 2 | not exactly a great idea to not be using the cross ranlib anyhow, fix the |
| 3 | Makefile so we can override ranlib and then override it |
| 4 | |
| 5 | Upstream-Status: Inappropriate [build system specific change] |
| 6 | --- |
| 7 | src/Makefile | 3 ++- |
| 8 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 9 | |
| 10 | Index: lmbench-3.0-a9/src/Makefile |
| 11 | =================================================================== |
| 12 | --- lmbench-3.0-a9.orig/src/Makefile |
| 13 | +++ lmbench-3.0-a9/src/Makefile |
| 14 | @@ -38,6 +38,7 @@ CC=`../scripts/compiler` |
| 15 | MAKE=`../scripts/make` |
| 16 | AR=ar |
| 17 | ARCREATE=cr |
| 18 | +RANLIB=ranlib |
| 19 | |
| 20 | # base of installation location |
| 21 | BASE=/usr/local |
| 22 | @@ -217,7 +218,7 @@ $O/lmbench : ../scripts/lmbench version. |
| 23 | $O/lmbench.a: $(LIBOBJS) |
| 24 | /bin/rm -f $O/lmbench.a |
| 25 | $(AR) $(ARCREATE) $O/lmbench.a $(LIBOBJS) |
| 26 | - -ranlib $O/lmbench.a |
| 27 | + -$(RANLIB) $O/lmbench.a |
| 28 | |
| 29 | $O/lib_timing.o : lib_timing.c $(INCS) |
| 30 | $(COMPILE) -c lib_timing.c -o $O/lib_timing.o |