]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - tools/Makefile
tools: mkeficapsule: use pkg-config for each lib separat
[thirdparty/u-boot.git] / tools / Makefile
index 005e7362a31ab54a998ea91909a4bdaf6dbbdcb1..3626919633aac8e91eb0ec48cb5c4d04cfa575fc 100644 (file)
@@ -245,9 +245,13 @@ hostprogs-$(CONFIG_ASN1_COMPILER)  += asn1_compiler
 HOSTCFLAGS_asn1_compiler.o = -idirafter $(srctree)/include
 
 HOSTCFLAGS_mkeficapsule.o += \
-       $(shell pkg-config --cflags gnutls uuid 2> /dev/null || echo "")
+       $(shell pkg-config --cflags gnutls 2> /dev/null || echo "")
+HOSTCFLAGS_mkeficapsule.o += \
+       $(shell pkg-config --cflags uuid 2> /dev/null || echo "")
+HOSTLDLIBS_mkeficapsule += \
+       $(shell pkg-config --libs gnutls 2> /dev/null || echo "-lgnutls")
 HOSTLDLIBS_mkeficapsule += \
-       $(shell pkg-config --libs gnutls uuid 2> /dev/null || echo "-lgnutls -luuid")
+       $(shell pkg-config --libs uuid 2> /dev/null || echo "-luuid")
 hostprogs-$(CONFIG_TOOLS_MKEFICAPSULE) += mkeficapsule
 
 # We build some files with extra pedantic flags to try to minimize things