Commit 105cb8c2 authored by Karel Slaný's avatar Karel Slaný Committed by Ondřej Surý
Browse files

Presence of libcrypto controls compilation od DNS cookies functionality.

parent 7d314fed
......@@ -62,11 +62,11 @@ ifneq (,$(findstring luajit, $(lua_LIBS)))
endif
endif
BUILD_CFLAGS += $(libknot_CFLAGS) $(libuv_CFLAGS) $(cmocka_CFLAGS) $(lua_CFLAGS) $(libdnssec_CFLAGS) $(libsystemd_CFLAGS)
BUILD_CFLAGS += $(libknot_CFLAGS) $(libuv_CFLAGS) $(libcrypto_CFLAGS) $(cmocka_CFLAGS) $(lua_CFLAGS) $(libdnssec_CFLAGS) $(libsystemd_CFLAGS)
BUILD_CFLAGS += $(addprefix -I,$(wildcard contrib/ccan/*) contrib/murmurhash3)
ifeq ($(ENABLE_cookies),yes)
BUILD_CFLAGS += -DENABLE_COOKIES $(libcrypto_CFLAGS)
ifeq ($(HAS_libcrypto),yes)
BUILD_CFLAGS += -DENABLE_COOKIES
endif
# Overview
......
......@@ -45,7 +45,7 @@ libkres_CFLAGS := -fvisibility=hidden -fPIC $(lmdb_CFLAGS)
libkres_LIBS := $(contrib_TARGET) $(libknot_LIBS) $(libdnssec_LIBS) $(lmdb_LIBS)
libkres_TARGET := -L$(abspath lib) -lkres
ifeq ($(ENABLE_cookies),yes)
ifeq ($(HAS_libcrypto),yes)
libkres_SOURCES += \
lib/layer/cookiemonster.c \
lib/cookies/cache.c \
......
......@@ -3,7 +3,7 @@ modules_TARGETS := hints \
stats
# DNS cookies
ifeq ($(ENABLE_cookies),yes)
ifeq ($(HAS_libcrypto),yes)
modules_TARGETS += cookiectl
endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment