From 432c1e3b0f7ff6a9fa11e6d8ed8b897dc3f9246f Mon Sep 17 00:00:00 2001 From: Andrey Utkin Date: Sat, 12 Dec 2015 22:37:15 +0200 Subject: [PATCH] modules/websocket: ensure linkage to libcrypto Fixes linkage for Ubuntu Wily (15.10). The issue manifests itself as "undefined symbol: SHA1" error at module loading. --- modules/websocket/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/websocket/Makefile b/modules/websocket/Makefile index 915c81a7946..010aa90c973 100644 --- a/modules/websocket/Makefile +++ b/modules/websocket/Makefile @@ -13,6 +13,12 @@ SSL_BUILDER=$(shell \ if pkg-config --exists libssl; then \ echo 'pkg-config libssl'; \ fi) +ifneq($(SSL_BUILDER),) +SSL_BUILDER+=$(shell \ + if pkg-config --exists libcrypto; then \ + echo 'libcrypto'; \ + fi) +endif endif ifneq ($(SSL_BUILDER),)