Re: [PATCH] scripts: use pkg-config to locate libcrypto

2018-11-22 Thread David Woodhouse
On Thu, 2018-11-22 at 16:45 +0100, Rolf Eike Beer wrote: > -HOSTLDLIBS_sign-file = -lcrypto > -HOSTLDLIBS_extract-cert = -lcrypto > +HOSTLDLIBS_sign-file = $(shell $(PKG_CONFIG) --libs libcrypto 2> /dev/null > || -lcrypto) > +HOSTCFLAGS_extract-cert.o = $(shell $(PKG_CONFIG) --cflags libcrypto 2>

Re: [PATCH] scripts: use pkg-config to locate libcrypto

2018-11-22 Thread David Woodhouse
On Thu, 2018-11-22 at 16:45 +0100, Rolf Eike Beer wrote: > -HOSTLDLIBS_sign-file = -lcrypto > -HOSTLDLIBS_extract-cert = -lcrypto > +HOSTLDLIBS_sign-file = $(shell $(PKG_CONFIG) --libs libcrypto 2> /dev/null > || -lcrypto) > +HOSTCFLAGS_extract-cert.o = $(shell $(PKG_CONFIG) --cflags libcrypto 2>

[PATCH] scripts: use pkg-config to locate libcrypto

2018-11-22 Thread Rolf Eike Beer
Otherwise build fails if the headers are not in the default location. While at it also ask pkg-config for the libs, with fallback to the existing value. Signed-off-by: Rolf Eike Beer Cc: sta...@vger.kernel.org --- scripts/Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)

[PATCH] scripts: use pkg-config to locate libcrypto

2018-11-22 Thread Rolf Eike Beer
Otherwise build fails if the headers are not in the default location. While at it also ask pkg-config for the libs, with fallback to the existing value. Signed-off-by: Rolf Eike Beer Cc: sta...@vger.kernel.org --- scripts/Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-)