projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c03650
)
tools: cmake: use pkg-config to discover libcrypto linker flags
author
Jo-Philipp Wich
<
[email protected]
>
Thu, 5 Jan 2017 13:16:57 +0000
(14:16 +0100)
committer
Jo-Philipp Wich
<
[email protected]
>
Thu, 5 Jan 2017 13:21:27 +0000
(14:21 +0100)
LibreSSL's libcrypto.so has an indirect dependency to librt for clock_gettime()
on Linux.
Use pkg-config to portably discover the required linker flags.
Signed-off-by: Jo-Philipp Wich <
[email protected]
>
tools/cmake/Makefile
patch
|
blob
|
history
diff --git
a/tools/cmake/Makefile
b/tools/cmake/Makefile
index 9545e12d6cc783b4994df8c8142e9aee151816c2..13390ab9679f616f10332bfcc29d98a334dc3c4c 100644
(file)
--- a/
tools/cmake/Makefile
+++ b/
tools/cmake/Makefile
@@
-21,7
+21,8
@@
include $(INCLUDE_DIR)/host-build.mk
HOST_CONFIGURE_CMD := MAKEFLAGS="$(HOST_JOBS)" $(BASH) ./configure
-HOST_CONFIGURE_VARS :=
+HOST_CONFIGURE_VARS := \
+ LDFLAGS="$$$$(pkg-config --static --libs libcrypto)"
HOST_CONFIGURE_ARGS := \
--prefix=$(STAGING_DIR_HOST)