From ad7de0c794f0c3215a8ed130c59ec6757af8d460 Mon Sep 17 00:00:00 2001 From: ParadoxV5 Date: Sat, 25 May 2024 14:22:21 -0600 Subject: [PATCH] Quiet `ar` with `ARFLAGS` rather than `> null` `ARFLAGS` is an implicit variable in GNU `make` (the `README` _specifies GNU_ `make`) and defaulted verbosely, so un-verbose-fy it is the more direct *and platform-agnostic* way to quiet `ar`. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index afeb58ecd0..1c5d33ada0 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ CFLAGS := -g -O2 -std=c99 -Wall -Werror -Wextra -Wpedantic -Wundef -Wconversion JAVA_WASM_CFLAGS := -g -Oz -std=c99 -Wall -Werror -Wextra -Wpedantic -Wundef -Wconversion -Wno-missing-braces -fPIC -fvisibility=hidden -Wimplicit-fallthrough $(JAVA_WASM_CFLAGS) CC ?= cc AR ?= ar +ARFLAGS ?= -r$(V0:1=v) WASI_SDK_PATH := /opt/wasi-sdk MAKEDIRS ?= mkdir -p @@ -38,7 +39,7 @@ build/libprism.$(SOEXT): $(SHARED_OBJECTS) build/libprism.a: $(STATIC_OBJECTS) $(ECHO) "building $@ with $(AR)" - $(Q) $(AR) $(ARFLAGS) $@ $(STATIC_OBJECTS) $(Q1:0=>/dev/null) + $(Q) $(AR) $(ARFLAGS) $@ $(STATIC_OBJECTS) javascript/src/prism.wasm: Makefile $(SOURCES) $(HEADERS) $(ECHO) "building $@"