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 --- flowtop/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'flowtop') diff --git a/flowtop/Makefile b/flowtop/Makefile index 41865c7..1bd5a0f 100644 --- a/flowtop/Makefile +++ b/flowtop/Makefile @@ -1,8 +1,8 @@ flowtop-libs = -lurcu \ -lnetfilter_conntrack \ - $(shell pkg-config --libs ncurses 2> /dev/null \ + $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs ncurses 2> /dev/null \ || echo '-lncurses') \ - $(shell pkg-config --libs tinfo 2> /dev/null ) \ + $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs tinfo 2> /dev/null ) \ -lpthread ifeq ($(CONFIG_GEOIP), 1) @@ -29,7 +29,7 @@ flowtop-objs += geoip.o \ ioops.o endif -flowtop-eflags = $(shell pkg-config --cflags ncurses) +flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses) flowtop-confs = tcp.conf \ udp.conf \ -- cgit v1.2.3-54-g00ecf next.git/refs/?h=packet-loop-back&id=ead3f26e359e12ac8d90baff8ed399b85e82fe5b'>refslogtreecommitdiff
ModeNameSize