diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-04-23 11:52:27 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-04-23 11:54:43 +0200 |
commit | f2275b2c13743ff6059068ac8eaa82733bfa2630 (patch) | |
tree | 2086b3a543b0132755cf04bf53b010b4c3e4afe0 /INSTALL | |
parent | 6a7762bd6ab5eaeec23fa05a22c1edf4d9ab0804 (diff) |
build: Restore support for cross-compiling the netsniff-ng toolkit
Ever since we switched to the hand-crafted ./configure script, support
for cross-compiling the netsniff-ng toolkit was basically broken.
Restore the abaility to cross-compile our tools by making ./configure
consider the CROSS_COMPILE and SYSROOT variables.
Example for cross-compiling on arm:
$ CROSS_COMPILE=arm-linux-gnueabihf- \
SYSROOT=/usr/arm-linux-gnueabihf \
./configure
$ make
assuming the cross-compiled libraries (and their respective pkg-config
information) are in /usr/arm-linux-gnueabihf.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -160,8 +160,13 @@ variable first, e.g.: And then, build the toolkit like this: - $ make CROSS_COMPILE=microblazeel-unknown-linux-gnu- \ - CROSS_LD_LIBRARY_PATH=<cc-lib-search-path> + $ CROSS_COMPILE=microblazeel-unknown-linux-gnu- \ + SYSROOT=<sysroot-path> ./configure + $ make + +SYSROOT should be set to the path where your cross-compiled libraries are +stored, i.e. the path you specify as prefix when configuring the library using +`./configure --prefix=<prefix>'. Note that some adaptations might be necessary regarding the CFLAGS, since not all might be supported by a different architecture. Probably the most simple |