diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-17 11:41:15 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-17 11:42:25 +0100 |
commit | 146e135be2abe8c95a50c45e473bdbf79c145271 (patch) | |
tree | a0b2b8cd29c98955a34d37f878dadcae778fe8c3 | |
parent | 78d5cad8aedf17d8687975c724bd71bbf2186ffe (diff) |
README: Add section about cross-compilation
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r-- | README | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -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=<path> install + $ make + $ sudo make prefix=<path> 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 ------- |