aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-11-25 15:41:14 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-11-25 15:41:14 +0100
commit42a830823669b6fc7fa529c92d8cc528e57d5629 (patch)
tree4b23c2f0e4e335e30b41a4b11393b88e7b707cf8
parentd35ced607b715b38aaae37755a568ca6229a98ba (diff)
downloadnthash-42a830823669b6fc7fa529c92d8cc528e57d5629.tar.gz
nthash-42a830823669b6fc7fa529c92d8cc528e57d5629.tar.zst
fall back to hard coded linker flags if pkg-config fails0.1.4
-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