From f2275b2c13743ff6059068ac8eaa82733bfa2630 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 23 Apr 2015 11:52:27 +0200 Subject: 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 --- INSTALL | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'INSTALL') diff --git a/INSTALL b/INSTALL index d170bc2..3495089 100644 --- a/INSTALL +++ b/INSTALL @@ -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= + $ CROSS_COMPILE=microblazeel-unknown-linux-gnu- \ + SYSROOT= ./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='. Note that some adaptations might be necessary regarding the CFLAGS, since not all might be supported by a different architecture. Probably the most simple -- cgit v1.2.3-54-g00ecf id=7ce7d89f48834cefece7804d38fc5d85382edf77'>refslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 16:13:08 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2016-12-25 16:13:08 -0800
commit7ce7d89f48834cefece7804d38fc5d85382edf77 (patch)
treea7650ab5c0fa3a6a3841de8e8693041b3e009054 /Makefile
parent8ae679c4bc2ea2d16d92620da8e3e9332fa4039f (diff)
Linux 4.10-rc1
Diffstat (limited to 'Makefile')