diff options
author | Ariadne Conill <ariadne@dereferenced.org> | 2021-12-10 12:46:37 -0600 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-14 21:00:09 +0200 |
commit | 3dd27db09baffd87c1160aa9501dfafd428acae3 (patch) | |
tree | b0de669463a2f18814954c05b8fa0014273d8fb0 /libfetch/Makefile | |
parent | bf659c82465860b58b1ef8fee5cd8b6c3cade2a5 (diff) | |
download | apk-tools-3dd27db09baffd87c1160aa9501dfafd428acae3.tar.gz apk-tools-3dd27db09baffd87c1160aa9501dfafd428acae3.tar.bz2 apk-tools-3dd27db09baffd87c1160aa9501dfafd428acae3.tar.xz apk-tools-3dd27db09baffd87c1160aa9501dfafd428acae3.zip |
libfetch: use pkg-config to find openssl cflags
on mac, openssl is usually provided by Homebrew or some other third-party
package management system, which means pkg-config is needed to find it.
we already use pkg-config to find openssl when building apk itself.
ref #10794
Diffstat (limited to 'libfetch/Makefile')
-rw-r--r-- | libfetch/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libfetch/Makefile b/libfetch/Makefile index c4b56f5..0c2617f 100644 --- a/libfetch/Makefile +++ b/libfetch/Makefile @@ -4,6 +4,13 @@ generate-y += ftperr.h httperr.h CFLAGS_common.o += -DCA_CERT_FILE=\"$(CONFDIR)/ca.pem\" -DCA_CRL_FILE=\"$(CONFDIR)/crl.pem\" CFLAGS_common.o += -DCLIENT_CERT_FILE=\"$(CONFDIR)/cert.pem\" -DCLIENT_KEY_FILE=\"$(CONFDIR)/cert.key\" +PKG_CONFIG ?= pkg-config + +OPENSSL_CFLAGS := $(shell $(PKG_CONFIG) --cflags openssl) +OPENSSL_LIBS := $(shell $(PKG_CONFIG) --libs openssl) + +CFLAGS_ALL += $(OPENSSL_CFLAGS) + quiet_cmd_generr = GENERR $@ cmd_generr = $(src)/errlist.sh $(basename $(<F))_errlist $(shell echo $(basename $(<F)) | tr a-z A-Z) $< > $@ |