Add c flag when invoking ar (#241)

`llvm-ar` warns when the archive does not exist and `c` is not passed.
This commit is contained in:
Harmen Stoppels 2022-10-25 04:47:20 +02:00 committed by GitHub
parent 63f31c908e
commit 1f1e42d3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ utf8proc.o: utf8proc.h utf8proc.c utf8proc_data.c
libutf8proc.a: utf8proc.o libutf8proc.a: utf8proc.o
rm -f libutf8proc.a rm -f libutf8proc.a
$(AR) rs libutf8proc.a utf8proc.o $(AR) crs libutf8proc.a utf8proc.o
libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH): utf8proc.o libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH): utf8proc.o
$(CC) $(LDFLAGS) $(LDFLAG_SHARED) -o $@ $(SOFLAG) -Wl,libutf8proc.so.$(MAJOR) utf8proc.o $(CC) $(LDFLAGS) $(LDFLAG_SHARED) -o $@ $(SOFLAG) -Wl,libutf8proc.so.$(MAJOR) utf8proc.o