X-Git-Url: https://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/d0b8c28b8cabac6aeee4bd88e7baf5cc5e0bec00..0d75a7ee44585b01ffe3c41ebcb6c0a286d712b2:/sys-libs/flashmap/files/flashmap-respect-AR.patch diff --git a/sys-libs/flashmap/files/flashmap-respect-AR.patch b/sys-libs/flashmap/files/flashmap-respect-AR.patch new file mode 100644 index 0000000..31a39f2 --- /dev/null +++ b/sys-libs/flashmap/files/flashmap-respect-AR.patch @@ -0,0 +1,38 @@ +From 04223f5e24c807467d4ff0b254845843fd8f8a47 Mon Sep 17 00:00:00 2001 +From: Nick Bowler +Date: Fri, 21 Apr 2017 16:03:47 -0400 +Subject: [PATCH 2/5] Respect AR. + +--- + Makefile | 1 - + lib/Makefile | 2 +- + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/Makefile b/Makefile +index 45942c1..9401cf0 100644 +--- a/Makefile ++++ b/Makefile +@@ -95,7 +95,6 @@ help: + + $(SRC_LIBDIR)/libfmap.a: + @$(MAKE) -C $(SRC_LIBDIR) +- ar rcs $@ $(SRC_LIBDIR)/*.o + + $(SHARED_OBJ_FILE): $(SRC_LIBDIR)/libfmap.a + $(CC) $(CFLAGS) $(LINKOPTS) -shared -Wl,-soname,$(SHARED_OBJ_SONAME) -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive +diff --git a/lib/Makefile b/lib/Makefile +index bb65449..7d02dcb 100644 +--- a/lib/Makefile ++++ b/lib/Makefile +@@ -54,7 +54,7 @@ $(MINCRYPT)/sha.o: + @$(MAKE) -C $(MINCRYPT) + + libfmap.a: $(OBJS) $(DEPS) +- ar rcs $@ $+ ++ $(AR) rcs $@ $+ + + %.o: %.c + $(CC) $(ALL_CFLAGS) -c $^ -I. -I$(INCLUDES) -o $@ +-- +2.10.2 +