From 973f19b4fe73ef956fbb4eeaf963bbb83c926203 Mon Sep 17 00:00:00 2001 From: edef Date: Wed, 27 Nov 2019 17:45:31 +0000 Subject: Reference openssl(1) by absolute path This still allows using openssl(1) from PATH, but defaults to using ${LIBRESSL_PREFIX}/bin/openssl. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6c33ceb..de08e06 100644 --- a/Makefile +++ b/Makefile @@ -2,9 +2,11 @@ PREFIX = /usr/local MANDIR = ${PREFIX}/man ETCDIR = ${PREFIX}/etc LIBRESSL_PREFIX = /usr/local +LIBRESSL_BIN_PREFIX = ${LIBRESSL_PREFIX:%=%/bin} CFLAGS += -std=c11 -Wall -Wextra -Wpedantic CFLAGS += ${LIBRESSL_PREFIX:%=-I%/include} +CFLAGS += ${LIBRESSL_BIN_PREFIX:%=-D'LIBRESSL_BIN_PREFIX="%/"'} LDFLAGS += ${LIBRESSL_PREFIX:%=-L%/lib} LDLIBS = -lcrypt -lcrypto -ltls -- cgit 1.4.1