this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add some build flags from Libsyscall.xcconfig

This fixes the symbol linking issue for `_os_alloc_once_table`, allowing us to remove our workaround (this hopefully fixes an issue with Bash freezing up when forking).

+9 -6
+9
src/kernel/libsyscall/CMakeLists.txt
··· 695 695 set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -U_DARWIN_C_SOURCE -U_POSIX_C_SOURCE -U__DARWIN_UNIX03 -D__DARWIN_UNIX03=0 -U__DARWIN_C_LEVEL") 696 696 endforeach(file) 697 697 698 + add_compile_options( 699 + #-fdollars-in-identifiers 700 + -no-cpp-precomp 701 + -fno-common 702 + -fno-stack-protector 703 + -fno-stack-check 704 + -momit-leaf-frame-pointer 705 + ) 706 + 698 707 add_darling_object_library(libsyscall ${syscall_sources}) 699 708 add_dependencies(libsyscall 700 709 libsyscall_generate_mig_headers
-6
src/kernel/libsyscall/os/alloc_once.c
··· 36 36 37 37 __attribute__((visibility("default"))) 38 38 extern struct _os_alloc_once_s _os_alloc_once_table[]; 39 - #ifdef DARLING 40 - // for some reason, the linker doesn't see uninitialized symbols in static libraries 41 - // so we need to initialize this so dyld can use it 42 - struct _os_alloc_once_s _os_alloc_once_table[OS_ALLOC_ONCE_KEY_MAX] = { 0 }; 43 - #else 44 39 struct _os_alloc_once_s _os_alloc_once_table[OS_ALLOC_ONCE_KEY_MAX]; 45 - #endif