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