From 3b542d1fea82726842e6bfe03ddcbf86345c5b9d Mon Sep 17 00:00:00 2001 From: Maksym Telychko Date: Fri, 21 Jun 2019 16:47:05 +0300 Subject: [MTS-MTQ] refactoring: Makefile build static library option fix Generate index to archive. instead of ranlib. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3ace73f..8472075 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ LDFLAGS += -s -shared -Wl,-soname,$(APPNAME).so.0 all: $(APPNAME).a $(SONAME) $(APPNAME).a: $(OBJS) - $(AR) -r $@ $? + $(AR) -rs $@ $? $(SONAME): $(OBJS) $(CC) $(LDFLAGS) -o $@ $? $(LDLIBS) -- cgit v1.2.3