Only call pkg-config when actually linking sequoia make-cleanup
authorDamiano Boppart <damiano.boppart@pep.security>
Wed, 23 Jan 2019 15:31:29 +0100
branchmake-cleanup
changeset 3237574cba8e448f
parent 3236 efb3aff10882
child 3257 02ef5b3ce34a
Only call pkg-config when actually linking sequoia
Makefile.conf
     1.1 --- a/Makefile.conf	Wed Jan 23 15:29:54 2019 +0100
     1.2 +++ b/Makefile.conf	Wed Jan 23 15:31:29 2019 +0100
     1.3 @@ -209,14 +209,16 @@
     1.4  # gpgconf is not available for old version of GPG, for example GPG 2.0.30. Override this variable, if you compile the engine for such an old version.
     1.5  GPG_CMD:=$(shell gpgconf --list-components | awk -F: '/^gpg:/ { print $$3; exit 0; }')
     1.6  
     1.7 -# Selects OpenPGP implementation. must be either `GPG` or `NETPGP`
     1.8 +# Selects OpenPGP implementation. must be either `SEQUOIA`, `GPG` or `NETPGP`
     1.9  OPENPGP=GPG
    1.10  
    1.11  # Sequoia-specific variables
    1.12 -SEQUOIA_CFLAGS:=$(shell pkg-config --cflags-only-other sequoia)
    1.13 -SEQUOIA_LDFLAGS:=$(shell pkg-config --libs-only-L --libs-only-other sequoia)
    1.14 -SEQUOIA_LIB:=$(shell pkg-config --libs-only-l sequoia)
    1.15 -SEQUOIA_INC:=$(shell pkg-config --cflags-only-I sequoia)
    1.16 +ifeq ($(OPENPGP),SEQUOIA)
    1.17 +    SEQUOIA_CFLAGS:=$(shell pkg-config --cflags-only-other sequoia)
    1.18 +    SEQUOIA_LDFLAGS:=$(shell pkg-config --libs-only-L --libs-only-other sequoia)
    1.19 +    SEQUOIA_LIB:=$(shell pkg-config --libs-only-l sequoia)
    1.20 +    SEQUOIA_INC:=$(shell pkg-config --cflags-only-I sequoia)
    1.21 +endif
    1.22  
    1.23  # libGPGME filename
    1.24  ifeq ($(OPENPGP),GPG)