commit 14bd81aba1dc2d25dd1a44c74425b5916ac401ef
parent 7d8e17d4ff3c126ebd1ec743225f4acd1b6198cf
Author: Laslo Hunhold <dev@frign.de>
Date: Fri, 24 Jun 2022 12:05:03 +0200
Only add updated object files to the static library
ar(1) is explicitly tailored towards merely "updating" an archive
with a selection of object files rather than needing the entire list,
making this process more efficient.
It is, however, necessary for the .so-generation.
Thanks Quentin for pointing this out to me! :)
Signed-off-by: Laslo Hunhold <dev@frign.de>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -187,7 +187,7 @@ $(TEST):
$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<
libgrapheme.a: $(SRC:=.o)
- $(AR) rc $@ $(SRC:=.o)
+ $(AR) -rc $@ $?
$(RANLIB) $@
libgrapheme.so: $(SRC:=.o)