diff options
author | Christian Hesse <mail@eworm.de> | 2013-11-25 15:41:14 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-11-25 15:41:14 +0100 |
commit | 42a830823669b6fc7fa529c92d8cc528e57d5629 (patch) | |
tree | 4b23c2f0e4e335e30b41a4b11393b88e7b707cf8 | |
parent | d35ced607b715b38aaae37755a568ca6229a98ba (diff) | |
download | nthash-0.1.4.tar.gz nthash-0.1.4.tar.zst |
fall back to hard coded linker flags if pkg-config fails0.1.4
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |