summaryrefslogtreecommitdiff
path: root/ifpps/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-04-23 11:52:27 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-04-23 11:54:43 +0200
commitf2275b2c13743ff6059068ac8eaa82733bfa2630 (patch)
tree2086b3a543b0132755cf04bf53b010b4c3e4afe0 /ifpps/Makefile
parent6a7762bd6ab5eaeec23fa05a22c1edf4d9ab0804 (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 'ifpps/Makefile')
-rw-r--r--ifpps/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/ifpps/Makefile b/ifpps/Makefile
index 1625ea9..110e6aa 100644
--- a/ifpps/Makefile
+++ b/ifpps/Makefile
@@ -1,6 +1,6 @@
-ifpps-libs = $(shell pkg-config --libs ncurses 2> /dev/null \
+ifpps-libs = $(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 )
ifpps-objs = xmalloc.o \
ioops.o \
@@ -13,6 +13,6 @@ ifpps-objs = xmalloc.o \
die.o \
ifpps.o
-ifpps-eflags = $(shell pkg-config --cflags ncurses 2> /dev/null)
+ifpps-eflags = $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --cflags ncurses 2> /dev/null)
ifpps-confs =