commit 893398754441b5f9d3435b99c3317acac4766e24
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed Sep 27 07:24:14 2023 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Wed Sep 27 07:59:02 2023 +0200

    build: Use ARFLAGS when creating libraries
    
    ARFLAGS has the expected value for the toolchain used.

diff --git a/Makefile b/Makefile
index 6fc5411..b7cc307 100644
--- a/Makefile
+++ b/Makefile
@@ -199,11 +199,11 @@ $(OBJ): $(HDR) config.mk
        $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
 
 libutf.a: $(LIBUTFOBJ)
-       $(AR) rc $@ $?
+       $(AR) $(ARFLAGS) $@ $?
        $(RANLIB) $@
 
 libutil.a: $(LIBUTILOBJ)
-       $(AR) rc $@ $?
+       $(AR) $(ARFLAGS) $@ $?
        $(RANLIB) $@
 
 getconf.o: getconf.h

Reply via email to