Support `--allow-shlib-undefined` linker flag
alexrp opened this issue · comments
This is important for building plugin libraries. Undefined symbols are expected in these.
Note that the default behavior depends on whether a shared library is being created, and on whether the target is macOS (possibly other platforms?). We should ensure a reasonable and consistent default of --no-allow-shlib-undefined
.
The form is -Wl,--(no-)allow-shlib-undefined
for C/C++ and -f(no-)allow-shlib-undefined
for Zig.
Should be exposed as <AllowUndefinedSymbols>true</AllowUndefinedSymbols>
.