summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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