rpcd: iwinfo plugin fixes
[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@nbd.name>
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@nbd.name>
9 ---
10
11 --- a/scripts/ld-version.sh
12 +++ b/scripts/ld-version.sh
13 @@ -1,8 +1,10 @@
14 -#!/usr/bin/awk -f
15 +#!/bin/sh
16 # extract linker version number from stdin and turn into single number
17 +exec awk '
18 {
19 gsub(".*\\)", "");
20 split($1,a, ".");
21 print a[1]*10000000 + a[2]*100000 + a[3]*10000 + a[4]*100 + a[5];
22 exit
23 }
24 +'