ppp: Update to version 2.4.9
[openwrt/openwrt.git] / package / network / services / ppp / patches / 010-use_target_for_configure.patch
1 configure: Allow overriding uname results
2
3 In a cross compile setting it makes no sense to rely on the "uname" values
4 reported by the build host system. This patch allows overriding the
5 "uname -r", "uname -s" and "uname -m" results with the "UNAME_R", "UNAME_S"
6 and "UNAME_M" environment variables.
7
8 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
9
10 --- a/configure
11 +++ b/configure
12 @@ -10,9 +10,9 @@ CROSS_COMPILE=
13 CC=cc
14 CFLAGS=
15
16 -system=`uname -s`
17 -release=`uname -r`
18 -arch=`uname -m`
19 +system=${UNAME_S:-`uname -s`}
20 +release=${UNAME_R:-`uname -r`}
21 +arch=${UNAME_M:-`uname -m`}
22 state="unknown"
23
24 case $system in