From e8bdbaab228e67b9251baf1fcdae846306cddd59 Mon Sep 17 00:00:00 2001 From: Hiroshi Takekawa Date: Wed, 5 Jan 2022 18:25:17 +0900 Subject: [PATCH] Use pkg-config to know where openssl header files reside Let Makefile know how to locate openssl header files in a directory other than the default directories by using pkg-config. If you don't have pkg-config, then $(shell) returns empty. Signed-off-by: Hiroshi Takekawa --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7e2773fd..2e3391a2 100644 --- a/Makefile +++ b/Makefile @@ -112,6 +112,7 @@ endif # Use pkg-config to know where libcrypto resides. ifneq ($(OS), Darwin) + CPPFLAGS += $(shell pkg-config --cflags-only-I openssl) LIBS += $(shell pkg-config --libs-only-L openssl) -lcrypto endif