From a70cae04a3fe18994109834ed94ec99d8f2be959 Mon Sep 17 00:00:00 2001 From: nhmall Date: Mon, 30 Oct 2023 16:20:49 -0400 Subject: [PATCH] Linux: refine warning suppression groff 1.23 is known to have the issue --- sys/unix/hints/linux.370 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/unix/hints/linux.370 b/sys/unix/hints/linux.370 index 301aee237..922f7a5bf 100755 --- a/sys/unix/hints/linux.370 +++ b/sys/unix/hints/linux.370 @@ -337,8 +337,18 @@ VARDIRPERM = 0755 VARFILEPERM = 0600 GAMEPERM = 0755 -# suppress several hundred warnings with recent *roff +# suppress several hundred warnings with groff 1.23 +#detection of groff +NROFFISGROFF := $(shell echo `nroff --version | grep "GNU groff version"`) +#$(info NROFFISGROFF=$(NROFFISGROFF)) +ifneq "$(NROFFISGROFF)" "" +# get the version of groff +GROFFGE123 := $(shell expr `echo $(NROFFISGROFF) | cut -f2 -d.` \>= 23) +#$(info GROFFGE123=$(GROFFGE123)) +ifeq "$(GROFFGE123)" "1" NROFF_FLAGS = -W font +endif +endif # NROFFISGROFF # #-INCLUDE cross-pre.370