]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tools: use pkg-config when available to get SSL flags
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 16 May 2015 16:36:15 +0000 (18:36 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:47:08 +0000 (22:47 +0200)
commit1d4f4fd76c171c728dcda64f47896ada3f51f896
treea60bcb6a7ba246a7c3017b10d2f966d72982f050
parentb104f82c6695ad1b2ad5511653996e5d3e51305f
tools: use pkg-config when available to get SSL flags

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@free-electrons.com>
tools/Makefile