packages/net/chrony/patches/001-crosscompile.patch
florian f052574592 Add chrony from (#1388)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6593 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-17 11:34:51 +00:00

27 lines
836 B
Diff

diff -ru chrony-1.21.orig/configure chrony-1.21/configure
--- chrony-1.21.orig/configure 2005-08-11 22:32:54.000000000 +0200
+++ chrony-1.21/configure 2006-08-08 22:24:39.000000000 +0200
@@ -185,6 +185,13 @@
--prefix=* | --install_prefix=* )
INSTALL_PREFIX=`echo $option | sed -e 's/[^=]*=//;'`
;;
+ --target=* )
+ TARGET=`echo $option | sed -e 's/[^=]*=//;'`
+ OPERATINGSYSTEM=`echo $TARGET | sed -e 's/.*-//;'`
+ MACHINE=`echo $TARGET | sed -e 's/-.*//;'`
+ VERSION=""
+ SYSTEM=${OPERATINGSYSTEM}-${MACHINE}
+ ;;
--trace )
EXTRA_DEFS="-DTRACEON"
;;
@@ -237,7 +244,7 @@
;;
esac
;;
- Linux* )
+ Linux* | linux* )
EXTRA_OBJECTS="sys_linux.o wrap_adjtimex.o rtc_linux.o"
SYSDEFS="-DLINUX"
echo "Configuring for " $SYSTEM