zig cc fails to link Go plugin under Mac M1 due to -flat_namespace
#14987
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
linking
os-macos
Milestone
Zig Version
0.11.0-dev.1987+a2c6ecd6d
Steps to Reproduce and Observed Behavior
Trying to compile+linux Go plugins (they require C compiler) under
zig cc
fails due to lack of-flat_namespace
support.Reproducer repository is here: https://github.com/misha-ridge/p, clone and
make
:This happens with Go 1.20.1 (maybe others too, didn't check)
Expected Behavior
Go plugins can be linked by
zig cc
. They work well under Linux/x86-64.The text was updated successfully, but these errors were encountered: