commit 893398754441b5f9d3435b99c3317acac4766e24
parent bb4a01e837195713d6ce2f4e66826cfc7bfa3713
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 27 Sep 2023 07:24:14 +0200
build: Use ARFLAGS when creating libraries
ARFLAGS has the expected value for the toolchain used.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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