projects
/
openwrt
/
staging
/
zorun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe8cc2
)
cmake.mk: set C/CXX compiler for host builds as well
author
Rosen Penev
<
[email protected]
>
Thu, 26 Nov 2020 00:08:57 +0000
(16:08 -0800)
committer
Petr Štetiar
<
[email protected]
>
Sat, 5 Dec 2020 19:50:19 +0000
(20:50 +0100)
Without this, cmake will use whatever CC/CXX is set to, which could be
clang. In that case, at least libjson-c/host will fail to compile.
Signed-off-by: Rosen Penev <
[email protected]
>
(cherry picked from commit
f98878e4c17d5f11e78994b4fc456e6b60b2660f
)
include/cmake.mk
patch
|
blob
|
history
diff --git
a/include/cmake.mk
b/include/cmake.mk
index a5ba7d31bf92a5463986009b2735d37a3859ad39..1f764ab95593e68a359250e7b3b692faa91ce807 100644
(file)
--- a/
include/cmake.mk
+++ b/
include/cmake.mk
@@
-90,6
+90,8
@@
define Host/Configure/Default
LDFLAGS="$(HOST_LDFLAGS)" \
cmake \
-DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_C_COMPILER="$(HOSTCC)" \
+ -DCMAKE_CXX_COMPILER="$(HOSTCXX)" \
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \