[llvm-dev] ld: malformed dylib has MH_NO_REEXPORTED_DYLIBS flag but no LC_REEXPORT_DYLIB with MachO lld
Carlo Kok via llvm-dev
llvm-dev at lists.llvm.org
Mon May 13 02:44:01 PDT 2019
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?
More information about the llvm-dev
mailing list