summaryrefslogtreecommitdiff
path: root/aports/linux-lts/awk.patch
blob: b73f69b596d57492e1b5d5c8552fe48b397c26b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
tools/objtool does not pass AWK= as an makefile argument so we need pass it as an env.

diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
index 92ce4fc..cfedb0c 100644
--- a/tools/objtool/Makefile
+++ b/tools/objtool/Makefile
@@ -37,7 +37,7 @@ LDFLAGS  += $(LIBELF_LIBS) $(LIBSUBCMD) $(KBUILD_HOSTLDFLAGS)
 elfshdr := $(shell echo '$(pound)include <libelf.h>' | $(CC) $(CFLAGS) -x c -E - | grep elf_getshdr)
 CFLAGS += $(if $(elfshdr),,-DLIBELF_USE_DEPRECATED)
 
-AWK = awk
+AWK ?= awk
 
 SUBCMD_CHECK := n
 SUBCMD_ORC := n