recipes: Preserve warnings flags appending the C flags in some (specific) recipes
[dragora.git] / patches / efivar / efivar-mandoc-groff.patch
blobcb8f4ac64d83633edbd66abe0ee0ec1d14414f74
1 From 1f310c1814ab0dde06a1a66da847b6c75a1dab2e Mon Sep 17 00:00:00 2001
2 From: DustDFG <dfgdust@gmail.com>
3 Date: Mon, 28 Feb 2022 10:11:09 +0000
4 Subject: [PATCH] Use groff as 'MANDOC'
6 Signed-off-by: DustDFG <dfgdust@gmail.com>
7 ---
8 src/include/defaults.mk | 2 +-
9 src/include/rules.mk | 4 ++--
10 2 files changed, 3 insertions(+), 3 deletions(-)
12 diff --git a/src/include/defaults.mk b/src/include/defaults.mk
13 index 632b155..1c88da1 100644
14 --- a/src/include/defaults.mk
15 +++ b/src/include/defaults.mk
16 @@ -111,7 +111,7 @@ NM := $(CROSS_COMPILE)$(COMPILER)-nm
17 RANLIB := $(CROSS_COMPILE)$(COMPILER)-ranlib
18 ABIDW := abidw
19 ABIDIFF := abidiff
20 -MANDOC := mandoc
21 +MANDOC := groff
23 LDLIBS=$(foreach lib,$(LIBS),-l$(lib)) $(call pkg-config-ldlibs)
25 diff --git a/src/include/rules.mk b/src/include/rules.mk
26 index f309f86..a2f0cca 100644
27 --- a/src/include/rules.mk
28 +++ b/src/include/rules.mk
29 @@ -21,10 +21,10 @@ family = $(foreach FAMILY_SUFFIX,$(FAMILY_SUFFIXES),$($(1)_$(FAMILY_SUFFIX)))
30 $(AR) -cvqs $@ $^
32 %.1 : %.1.mdoc
33 - $(MANDOC) -mdoc -Tman -Ios=Linux $^ > $@
34 + $(MANDOC) -mdoc -Tascii -Ios=Linux $^ > $@
36 %.3 : %.3.mdoc
37 - $(MANDOC) -mdoc -Tman -Ios=Linux $^ > $@
38 + $(MANDOC) -mdoc -Tascii -Ios=Linux $^ > $@
40 % : %.c
42 --
43 2.20.1