2 ms·
Can anyone link statically in XCode? Why did Apple break static linking in ld?
by e4m 18y ago
Can anyone link statically in XCode? Why did Apple break static linking in ld?
- dchest 18y agoSure. Just get rid of .dylib (dynamic library) and use .a (static library). The difficult part is that Xcode will automatically use the first found .dylib in PATH instead of .a, so to workaround you should put .a in PATH before .dylib, or just rename .a to something else (libcrypto.a -> libcrypto-my.a) and link with renamed library.