From eee6fb6e175287e2285ab47783fdab44c1530eb1 Mon Sep 17 00:00:00 2001 From: Jesper Dangaard Brouer Date: Wed, 18 Dec 2013 22:01:05 +0100 Subject: debian: compile fix for programs using ncurses For some reason the Debian ncurses version does not contain a ncurses.pc pkg-config file. Fix this by echoing "-lncurses" if the command fails: pkg-config --libs ncurses This fix will make ifpps compile on Debian Squeeze 6.0.8. Signed-off-by: Jesper Dangaard Brouer --- ifpps/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ifpps') diff --git a/ifpps/Makefile b/ifpps/Makefile index e095d27..4d1a9b6 100644 --- a/ifpps/Makefile +++ b/ifpps/Makefile @@ -1,5 +1,6 @@ -ifpps-libs = $(shell pkg-config --libs ncurses) \ - $(shell pkg-config --libs tinfo) +ifpps-libs = $(shell pkg-config --libs ncurses 2> /dev/null \ + || echo '-lncurses') \ + $(shell pkg-config --libs tinfo 2> /dev/null ) ifpps-objs = xmalloc.o \ ioops.o \ @@ -11,6 +12,6 @@ ifpps-objs = xmalloc.o \ screen.o \ ifpps.o -ifpps-eflags = $(shell pkg-config --cflags ncurses) +ifpps-eflags = $(shell pkg-config --cflags ncurses 2> /dev/null) ifpps-confs = -- cgit v1.2.3-54-g00ecf