Fix yaml pkg-config warnings
[vboot.git] / Makefile
index ef711fd..b2359ca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -629,6 +629,9 @@ UTIL_NAMES += \
        utility/pad_digest_utility \
        utility/signature_digest_utility \
        utility/verify_data
+
+LZMA_LIBS := $(shell ${PKG_CONFIG} --libs liblzma)
+YAML_LIBS := $(shell ${PKG_CONFIG} --libs yaml-0.1)
 endif
 
 UTIL_BINS_STATIC := $(addprefix ${BUILD}/,${UTIL_NAMES_STATIC})
@@ -1300,9 +1303,6 @@ ${BUILD}/tests/hmac_test: LDLIBS += ${CRYPTO_LIBS}
 
 ${TEST21_BINS}: LDLIBS += ${CRYPTO_LIBS}
 
-LZMA_LIBS := $(shell ${PKG_CONFIG} --libs liblzma)
-YAML_LIBS := $(shell ${PKG_CONFIG} --libs yaml-0.1)
-
 ${BUILD}/utility/bmpblk_utility: LD = ${CXX}
 ${BUILD}/utility/bmpblk_utility: LDLIBS = ${LZMA_LIBS} ${YAML_LIBS}