From 8a8523a9badaa3d3318d3aaf045cc7bd6aa24d6f Mon Sep 17 00:00:00 2001 From: Acshi Haggenmiller Date: Wed, 1 Apr 2020 20:08:47 -0400 Subject: [PATCH] ar -cr needed to not have duplicate symbols in the output static archive library file --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fa07e99..179d58d 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ install: $(APRILSAM_LIB)/libaprilsam.so $(APRILSAM_LIB)/libaprilsam.a: $(APRILSAM_OBJS) @echo " [$@]" - @$(AR) -cq $@ $(APRILSAM_OBJS) + @$(AR) -cr $@ $(APRILSAM_OBJS) $(APRILSAM_LIB)/libaprilsam.so: $(APRILSAM_OBJS) @echo " [$@]"