packages/net/chrony/patches/001-crosscompile.patch

27 lines
836 B
Diff
Raw Normal View History

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