]> git.draconx.ca Git - gentoo-draconx.git/blob - sys-libs/flashmap/files/flashmap-dont-set-make.patch
Add mosys ebuild.
[gentoo-draconx.git] / sys-libs / flashmap / files / flashmap-dont-set-make.patch
1 From 04ff0684fc44d8feaa081dd657a6b7d03fc15721 Mon Sep 17 00:00:00 2001
2 From: Nick Bowler <nbowler@draconx.ca>
3 Date: Fri, 21 Apr 2017 16:00:33 -0400
4 Subject: [PATCH 3/5] Don't set MAKE.
5
6 This will override the actual make command used for recursive
7 invocations, which is not what we want.
8 ---
9  Makefile     | 5 ++---
10  lib/Makefile | 4 ++--
11  2 files changed, 4 insertions(+), 5 deletions(-)
12
13 diff --git a/Makefile b/Makefile
14 index 9401cf0..0be39b6 100644
15 --- a/Makefile
16 +++ b/Makefile
17 @@ -38,7 +38,6 @@ VERSION_MINOR = 3
18  AR             ?= $(CROSS_COMPILE)ar
19  CC             ?= $(CROSS_COMPILE)gcc
20  LD             ?= $(CROSS_COMPILE)ld
21 -MAKE           = make
22  RM             = rm -f
23  
24  INSTALL                = install
25 @@ -94,7 +93,7 @@ help:
26  
27  
28  $(SRC_LIBDIR)/libfmap.a:
29 -       @$(MAKE) -C $(SRC_LIBDIR)
30 +       $(MAKE) -C $(SRC_LIBDIR)
31  
32  $(SHARED_OBJ_FILE): $(SRC_LIBDIR)/libfmap.a
33         $(CC) $(CFLAGS) $(LINKOPTS) -shared -Wl,-soname,$(SHARED_OBJ_SONAME) -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive
34 @@ -215,7 +214,7 @@ lcov-clean:
35  
36  clean: lcov-clean
37         rm -f *.o *.a $(PROGRAMS) $(TEST_PROGRAM) $(LIBFMAP_EXAMPLE) $(SHARED_OBJ_FILE)
38 -       @$(MAKE) -C $(SRC_LIBDIR) clean
39 +       $(MAKE) -C $(SRC_LIBDIR) clean
40  
41  %.o: %.c
42         $(CC) $(ALL_CFLAGS) -c $^ -I. -o $@
43 diff --git a/lib/Makefile b/lib/Makefile
44 index 7d02dcb..5aef1b0 100644
45 --- a/lib/Makefile
46 +++ b/lib/Makefile
47 @@ -48,10 +48,10 @@ export MY_CFLAGS
48  .PHONY: clean
49  clean:
50         rm -f *.o *.a
51 -       @$(MAKE) -C $(MINCRYPT) clean
52 +       $(MAKE) -C $(MINCRYPT) clean
53  
54  $(MINCRYPT)/sha.o:
55 -       @$(MAKE) -C $(MINCRYPT)
56 +       $(MAKE) -C $(MINCRYPT)
57  
58  libfmap.a: $(OBJS) $(DEPS)
59         $(AR) rcs $@ $+
60 -- 
61 2.10.2
62