Add chrony from (#1388)
[openwrt/svn-archive/archive.git] / net / chrony / patches / 001-crosscompile.patch
1 diff -ru chrony-1.21.orig/configure chrony-1.21/configure
2 --- chrony-1.21.orig/configure 2005-08-11 22:32:54.000000000 +0200
3 +++ chrony-1.21/configure 2006-08-08 22:24:39.000000000 +0200
4 @@ -185,6 +185,13 @@
5 --prefix=* | --install_prefix=* )
6 INSTALL_PREFIX=`echo $option | sed -e 's/[^=]*=//;'`
7 ;;
8 + --target=* )
9 + TARGET=`echo $option | sed -e 's/[^=]*=//;'`
10 + OPERATINGSYSTEM=`echo $TARGET | sed -e 's/.*-//;'`
11 + MACHINE=`echo $TARGET | sed -e 's/-.*//;'`
12 + VERSION=""
13 + SYSTEM=${OPERATINGSYSTEM}-${MACHINE}
14 + ;;
15 --trace )
16 EXTRA_DEFS="-DTRACEON"
17 ;;
18 @@ -237,7 +244,7 @@
19 ;;
20 esac
21 ;;
22 - Linux* )
23 + Linux* | linux* )
24 EXTRA_OBJECTS="sys_linux.o wrap_adjtimex.o rtc_linux.o"
25 SYSDEFS="-DLINUX"
26 echo "Configuring for " $SYSTEM