[hackers] [libzahl] Use ar(1)'s s-flag instead of invoking ranlib(1) || Tom Schwindl
commit 8aa2a900974b100672d1af89a97c1043372a446d
Author: Tom Schwindl <schwindl_AT_posteo.de>
AuthorDate: Wed Jul 20 14:26:57 2022 +0000
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Thu Jul 21 01:26:34 2022 +0200
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).
diff --git a/Makefile b/Makefile
index bd6e472..b885258 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -140,8 +140,7 @@ all: libzahl.a $(DOC)
$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $_AT_ $<
libzahl.a: $(OBJ)
- $(AR) rc $_AT_ $?
- $(RANLIB) $_AT_
+ $(AR) -rcs $_AT_ $?
test-random.c: test-generate.py
./test-generate.py > test-random.c
diff --git a/config.mk b/config.mk
index ad9c5c2..2a42d3c 100644
--- a/config.mk
+++ b/config.mk
_AT_@ -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
Received on Thu Jul 21 2022 - 01:27:21 CEST
This archive was generated by hypermail 2.3.0
: Thu Jul 21 2022 - 01:36:29 CEST