kernel: fix MIPS linux-4.4 build on non-GNU systems
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-4.4 / 010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Date: Mon, 18 Jan 2016 12:27:49 +0100
3 Subject: [PATCH] Kbuild: don't hardcode path to awk in scripts/ld-version.sh
4
5 On some systems /usr/bin/awk does not exist, or is broken. Find it via
6 $PATH instead.
7
8 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
9 ---
10
11 --- a/scripts/ld-version.sh
12 +++ b/scripts/ld-version.sh
13 @@ -1,4 +1,4 @@
14 -#!/usr/bin/awk -f
15 +#!/usr/bin/env awk -f
16 # extract linker version number from stdin and turn into single number
17 {
18 gsub(".*)", "");