From 42a830823669b6fc7fa529c92d8cc528e57d5629 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 25 Nov 2013 15:41:14 +0100 Subject: fall back to hard coded linker flags if pkg-config fails --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c87fc4..3aeb668 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,9 @@ GREP := grep INSTALL := install RM := rm CFLAGS += -O2 -Wall -Werror -CFLAGS += $(shell pkg-config --cflags --libs nettle) +# Debian has the libs but no pkg-config file. Fall back to hard coded +# "-lnettle" if pkg-config fails. +CFLAGS += $(shell pkg-config --cflags --libs nettle 2>/dev/null || echo "-lnettle") all: nthash -- cgit v1.2.3-70-g09d2