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 #10794cute-signatures
parent
f4f7796ccc
commit
81d8d2b3f4
|
@ -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) $< > $@
|
||||
|
||||
|
|
Loading…
Reference in New Issue