We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7f83a7 commit 66ff271Copy full SHA for 66ff271
1 file changed
external/openssl-cmake/CMakeLists.txt
@@ -162,6 +162,17 @@ if(CMAKE_CROSSCOMPILING)
162
endif()
163
164
165
+
166
+# NOTE: Running the configure step with OpenSSL on linux/armhf defaults to aarch64 instead of armv4
167
+# so we must set the cross-host value to force it to do the right thing. We detect that platform
168
+# here and do so accordingly.
169
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
170
+ string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" proc)
171
+ if(proc MATCHES "^arm" OR proc MATCHES "^armv[4-7]")
172
+ set(cross_host "linux-armv4")
173
+ endif()
174
+endif()
175
176
build_external(openssl
177
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E env
178
CC=${deps_cc}
0 commit comments