When building static libraries, the __zig_probe_stack symbol is undefined:
Undefined symbols for architecture x86_64:
"___zig_probe_stack", referenced from:
_std.debug.printLineInfo in x.o)
_std.sort.sort in x.o)
ld: symbol(s) not found for architecture x86_64
Passing -fno-stack-check fixes this (thanks @FireFox317 !), but maybe stack checking should be disabled automatically when building static libraries. Or maybe we want to link compile_rt?
What would be the best way to improve this?
When building static libraries, the
__zig_probe_stacksymbol is undefined:Passing
-fno-stack-checkfixes this (thanks @FireFox317 !), but maybe stack checking should be disabled automatically when building static libraries. Or maybe we want to linkcompile_rt?What would be the best way to improve this?