From: Tom Rini Date: Thu, 28 May 2015 09:23:57 -0400 Subject: [U-Boot] [U-Boot, PATCHv2] tools: use pkg-config when available to get SSL flags In-Reply-To: <1431794175-11866-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1431794175-11866-1-git-send-email-thomas.petazzoni@free-electrons.com> Message-ID: <20150528132357.GE8007@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: