From 146e135be2abe8c95a50c45e473bdbf79c145271 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 17 Feb 2015 11:41:15 +0100 Subject: README: Add section about cross-compilation Signed-off-by: Tobias Klauser --- README | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/README b/README index f60a984..ceeb000 100644 --- a/README +++ b/README @@ -10,14 +10,28 @@ Installation To build and install llmnrd use the following commands: -$ make -$ sudo make install + $ make + $ sudo make install By default, the llmnrd binary will be installed to /usr/local/sbin. To install the binary to a different installation path, use: -$ make -$ sudo make prefix= install + $ make + $ sudo make prefix= install + +Cross-Compilation +----------------- + +To cross-compile llmnrd for a different architecture, use the CROSS_COMPILE make +variable. To e.g. build it using the arm-linux-gnueabihf toolchain use: + + $ make CROSS_COMPILE=arm-linux-gnueabihf- + +When cross-compiling, you usually don't want to install the generated binary to +your root filesystem, but to the sysroot of a cross-compiled system. Use the +DESTDIR variable to change the installation destination path, e.g. + + $ make DESTDIR=$HOME/sysroot/ prefix=/usr install License ------- -- cgit v1.2.3-54-g00ecf