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

2019-06-06 Thread Rolf Eike Beer
David Woodhouse wrote: > On Thu, 2019-06-06 at 09:55 +0200, Rolf Eike Beer wrote: > > +CRYPTO_LIBS = $(shell $(PKG_CONFIG) --libs libcrypto 2> /dev/null || > > -lcrypto) > That's going to run: > > $ pkg-config --libs libcrypto || -lcrypto > > > If libcrypto.pc isn't there, it's going to get this

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

2019-06-06 Thread David Woodhouse
On Thu, 2019-06-06 at 09:55 +0200, Rolf Eike Beer wrote: > +CRYPTO_LIBS = $(shell $(PKG_CONFIG) --libs libcrypto 2> /dev/null || > -lcrypto) That's going to run: $ pkg-config --libs libcrypto || -lcrypto If libcrypto.pc isn't there, it's going to get this: -lcrypto: command not found I thin

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

2019-06-06 Thread Rolf Eike Beer
>From cca931322233827dc21c7609f21f4042d78f220e Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Thu, 22 Nov 2018 16:40:49 +0100 Subject: scripts: use pkg-config to locate libcrypto Otherwise build fails if the headers are not in the default location. While at it also ask pkg-config for the lib