Closed alucryd closed 9 months ago
There is probably no such option in ld64. https://github.com/tpoechtrager/cctools-port/blob/986-ld64-711/cctools/ld64/src/ld/Options.cpp#L3391
Yeah. I didn't find anything in the ld64 manpages unfortunately. Wondering if I can use ld64.lld instead.
No such option in ld64.lld either unfortunately. Will poke the llvm guys in case they have an idea.
To anyone building rust static libs, they all come with redundant symbols which is a huge pain for the linker... With GCC, and even android's clang and lld I can pass
-Wl,--allow-multiple-definition
, however this flag doesn't seem to be supported by the osxcross toolchain. I also tried-Wl,-Xlink=-force:multiple
but that didn't work either. Is there a way to achieve this using osxcross?Without the flag:
With the flag: