From 73e3f387cc5c6cf350547c569083415e22c7994a Mon Sep 17 00:00:00 2001 From: lizzie Date: Sun, 8 Mar 2026 23:07:56 +0000 Subject: [PATCH] try fix musl 2 --- externals/ps4sup/stub.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/externals/ps4sup/stub.cpp b/externals/ps4sup/stub.cpp index 562fbd4a38..ebaef27acc 100644 --- a/externals/ps4sup/stub.cpp +++ b/externals/ps4sup/stub.cpp @@ -9,7 +9,11 @@ asm volatile("ud2"); \ } -extern "C" void __cxa_thread_atexit_impl() {} +extern "C" int __pthread_cxa_finalize(); +extern "C" void __cxa_thread_atexit_impl() { + //printf("__cxa_thread_atexit_impl called!\n"); + //__pthread_cxa_finalize(); +} STUB_WEAK(__assert) STUB_WEAK(ZSTD_trace_compress_begin) @@ -20,14 +24,6 @@ STUB_WEAK(ZSTD_trace_decompress_end) FILE* __stderrp = stdout; FILE* __stdinp = stdin; -extern "C" { -struct _RuneLocale; -thread_local const _RuneLocale *_ThreadRuneLocale = NULL; -const _RuneLocale *_CurrentRuneLocale = NULL; -int __isthreaded = 0; -int __mb_sb_limit = 0; -} - #undef STUB_WEAK // THIS MAKES STD::COUT AND SUCH WORK :)