diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2018-02-12 17:13:14 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2018-02-12 17:13:14 +0100 |
commit | 2994da82694a0da977a23f7dfa68cdd1e96507ac (patch) | |
tree | 047ae2b13ca40441d282aab70f319e5f4ba8aae2 /README.md | |
parent | 21b5fc75be0a5a791622a57c2b827237a9654c39 (diff) |
make: remove CROSS_COMPILE variable
As a side effect of commit 21b5fc75be0a ("Makefile: assign CC
conditionally") which came in via PR #24, the CROSS_COMPILE make
variable is no longer taken into account because CC is always defined by
make itself.
Instead of working around this with dirty hacks, just suggest setting
CC to the corresponding cross-compiler.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -32,11 +32,12 @@ $ 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: +To cross-compile llmnrd for a different architecture, set the `CC` make +variable to the corresponding cross-compiler. To e.g. build it using the +arm-linux-gnueabihf toolchain use: ``` -$ make CROSS_COMPILE=arm-linux-gnueabihf- +$ make CC=arm-linux-gnueabihf-gcc ``` When cross-compiling, you usually don't want to install the generated binary to |