]> git.draconx.ca Git - gentoo-draconx.git/blob - sys-libs/flashmap/files/flashmap-respect-AR.patch
Add mosys ebuild.
[gentoo-draconx.git] / sys-libs / flashmap / files / flashmap-respect-AR.patch
1 From 04223f5e24c807467d4ff0b254845843fd8f8a47 Mon Sep 17 00:00:00 2001
2 From: Nick Bowler <nbowler@draconx.ca>
3 Date: Fri, 21 Apr 2017 16:03:47 -0400
4 Subject: [PATCH 2/5] Respect AR.
5
6 ---
7  Makefile     | 1 -
8  lib/Makefile | 2 +-
9  2 files changed, 1 insertion(+), 2 deletions(-)
10
11 diff --git a/Makefile b/Makefile
12 index 45942c1..9401cf0 100644
13 --- a/Makefile
14 +++ b/Makefile
15 @@ -95,7 +95,6 @@ help:
16  
17  $(SRC_LIBDIR)/libfmap.a:
18         @$(MAKE) -C $(SRC_LIBDIR)
19 -       ar rcs $@ $(SRC_LIBDIR)/*.o
20  
21  $(SHARED_OBJ_FILE): $(SRC_LIBDIR)/libfmap.a
22         $(CC) $(CFLAGS) $(LINKOPTS) -shared -Wl,-soname,$(SHARED_OBJ_SONAME) -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive
23 diff --git a/lib/Makefile b/lib/Makefile
24 index bb65449..7d02dcb 100644
25 --- a/lib/Makefile
26 +++ b/lib/Makefile
27 @@ -54,7 +54,7 @@ $(MINCRYPT)/sha.o:
28         @$(MAKE) -C $(MINCRYPT)
29  
30  libfmap.a: $(OBJS) $(DEPS)
31 -       ar rcs $@ $+
32 +       $(AR) rcs $@ $+
33  
34  %.o: %.c
35         $(CC) $(ALL_CFLAGS) -c $^ -I. -I$(INCLUDES) -o $@
36 -- 
37 2.10.2
38