libzahl

big integer library
git clone git://git.suckless.org/libzahl
Log | Files | Refs | README | LICENSE

commit 8aa2a900974b100672d1af89a97c1043372a446d
parent cf4b5d338225ac30d8f7434768c45619928bf3bf
Author: Tom Schwindl <schwindl@posteo.de>
Date:   Wed, 20 Jul 2022 14:26:57 +0000

Use ar(1)'s s-flag instead of invoking ranlib(1)

ranlib(1) is legacy and not even part of POSIX anymore, ar(1) can do the
same job with the s-flag (which is an XSI-extension, but whatever).

Diffstat:
MMakefile | 3+--
Mconfig.mk | 1-
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -140,8 +140,7 @@ all: libzahl.a $(DOC) $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< libzahl.a: $(OBJ) - $(AR) rc $@ $? - $(RANLIB) $@ + $(AR) -rcs $@ $? test-random.c: test-generate.py ./test-generate.py > test-random.c diff --git a/config.mk b/config.mk @@ -9,7 +9,6 @@ DOCPREFIX = $(PREFIX)/share/doc CC = cc AR = ar -RANLIB = ranlib CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -DGOOD_RAND CFLAGS = -std=c99 -O3 -flto -Wall -pedantic