[U-Boot] [U-Boot, PATCHv2] tools: use pkg-config when available to get SSL flags

Tom Rini trini at konsulko.com
Thu May 28 15:23:57 CEST 2015


On Sat, May 16, 2015 at 06:36:15PM +0200, Thomas Petazzoni wrote:

> Instead of hardcoding -lssl -lcrypto as the flags needed to build
> mkimage with FIT signature enabled, use pkg-config when
> available. This allows to properly support cases where static linking
> is used, which requires linking with -lz, since OpenSSL uses zlib
> internally.
> 
> We gracefully fallback on the previous behavior of hardcoding -lssl
> -lcrypto if pkg-config is not available or fails with an error.
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150528/15ed3243/attachment.sig>


More information about the U-Boot mailing list