Carlo Kok via llvm-dev
2019-May-13 09:44 UTC
[llvm-dev] ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag but no LC_REEXPORT_DYLIB with MachO lld
Using lld/macho I'm getting: ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag but no LC_REEXPORT_DYLIB load commands: /Users/ck/libClassLibrary50.dylib file '/Users/ck/libClassLibrary50.dylib' when trying to link to an LLD linked dylib the commandline is: lld -flavor ld64 -dylib -arch x86_64 -sdk_version 10.14 -L "." -o "/libClassLibrary50.dylib" "ClassLibrary50.a" "ClassLibrary50.o" "Island.a" "libgc.a" "ClassLibrary50.a" What am I doing wrong and/or what can I do to fix this?