mirror of
https://github.com/containers/skopeo.git
synced 2025-06-01 03:05:39 +00:00
Rebase against master and improve comment about gpgme-config
This commit is contained in:
parent
77a2e08eb2
commit
6c8b8c20f5
11
Makefile
11
Makefile
@ -5,14 +5,15 @@ PREFIX ?= /usr/local
|
|||||||
|
|
||||||
ifeq ($(shell uname),Darwin)
|
ifeq ($(shell uname),Darwin)
|
||||||
DARWIN_BUILD_TAG=
|
DARWIN_BUILD_TAG=
|
||||||
# On macOS, (brew install gpgme) installs it within /usr/local, but /usr/local/include is not in the default search path.
|
endif
|
||||||
# Rather than hard-code this directory, use gpgme-config. Sadly that must be done at the top-level user
|
|
||||||
# instead of locally in the gpgme subpackage, because cgo supports only pkg-config, not general shell scripts,
|
# On some plaforms (eg. macOS, FreeBSD) gpgme is installed in /usr/local/ but /usr/local/include/ is
|
||||||
# and gpgme does not install a pkg-config file.
|
# not in the default search path. Rather than hard-code this directory, use gpgme-config.
|
||||||
|
# Sadly that must be done at the top-level user instead of locally in the gpgme subpackage, because cgo
|
||||||
|
# supports only pkg-config, not general shell scripts, and gpgme does not install a pkg-config file.
|
||||||
# If gpgme is not installed or gpgme-config can’t be found for other reasons, the error is silently ignored
|
# If gpgme is not installed or gpgme-config can’t be found for other reasons, the error is silently ignored
|
||||||
# (and the user will probably find out because the cgo compilation will fail).
|
# (and the user will probably find out because the cgo compilation will fail).
|
||||||
GPGME_ENV := CGO_CFLAGS="$(shell gpgme-config --cflags 2>/dev/null)" CGO_LDFLAGS="$(shell gpgme-config --libs 2>/dev/null)"
|
GPGME_ENV := CGO_CFLAGS="$(shell gpgme-config --cflags 2>/dev/null)" CGO_LDFLAGS="$(shell gpgme-config --libs 2>/dev/null)"
|
||||||
endif
|
|
||||||
|
|
||||||
CONTAINERSCONFDIR=/etc/containers
|
CONTAINERSCONFDIR=/etc/containers
|
||||||
REGISTRIESDDIR=${CONTAINERSCONFDIR}/registries.d
|
REGISTRIESDDIR=${CONTAINERSCONFDIR}/registries.d
|
||||||
|
Loading…
Reference in New Issue
Block a user