WIP: [externals] maybe fix OpenSSL nonsense

wtf is happening

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2026-06-01 23:19:52 -04:00
parent cc8451f764
commit 5fcd5f379f
No known key found for this signature in database
GPG key ID: 425ACD2D4830EBC6
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ff14c8..72dd753 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -301,6 +301,12 @@ if(ANDROID)
)
endif()
+# posix_spawn can race with overlayfs in containers, use fork+execve instead.
+if(NOT WIN32)
+ string(REPLACE ";" " " _openssl_build_cmd "${OPENSSL_BUILD_COMMAND}")
+ set(OPENSSL_BUILD_COMMAND sh -c "${_openssl_build_cmd}")
+endif()
+
file(GLOB_RECURSE OPENSSL_SOURCES
${OpenSSL_SOURCE_DIR}/*.[ch]
${OpenSSL_SOURCE_DIR}/*.[ch].in

View file

@ -19,7 +19,8 @@
"patches": [
"0001-cpmutil-compat.patch",
"0002-use-ccache.patch",
"0003-use-cmake-compiler-flags.patch"
"0003-use-cmake-compiler-flags.patch",
"0004-use-shell-wrapper.patch"
]
},
"openssl": {