diff options
Diffstat (limited to 'meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch')
-rw-r--r-- | meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch new file mode 100644 index 000000000..41a3b3205 --- /dev/null +++ b/meta-oe/recipes-benchmark/lmbench/lmbench-3.0-a9/obey-ranlib.patch | |||
@@ -0,0 +1,30 @@ | |||
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 | ||