tools: cmake: link librt if needed (FS#381)
authorJo-Philipp Wich <jo@mein.io>
Wed, 11 Jan 2017 02:41:10 +0000 (03:41 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 11 Jan 2017 02:48:30 +0000 (03:48 +0100)
commit43d53399406b08bdfeb78727cd122578aee4894a
tree0120937b8abc3d101cba4304a6d7f5e442108548
parent69be65b594c4fafbc4e58dd3cd235547f02a33ca
tools: cmake: link librt if needed (FS#381)

Patch cmakes cmcurl component to unconditionally link librt when we discover
a clock_gettime() symbol in -lrt.

This is required to sucessfully link LibreSSL's libcrypto which might or
might not reqauire librt.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
tools/cmake/Makefile
tools/cmake/patches/140-curl-fix-libressl-linking.patch [new file with mode: 0644]