PROBLEMS revision 100936
1* System libcrypto.dylib and libssl.dylib are used by system ld on MacOS X. 2[NOTE: This is currently undergoing tests, and may be removed soon] 3 4This is really a misfeature in ld, which seems to look for .dylib libraries 5along the whole library path before it bothers looking for .a libraries. This 6means that -L switches won't matter unless OpenSSL is built with shared 7library support. 8 9The workaround may be to change the following lines in apps/Makefile.ssl and 10test/Makefile.ssl: 11 12 LIBCRYPTO=-L.. -lcrypto 13 LIBSSL=-L.. -lssl 14 15to: 16 17 LIBCRYPTO=../libcrypto.a 18 LIBSSL=../libssl.a 19 20It's possible that something similar is needed for shared library support 21as well. That hasn't been well tested yet. 22 23 24Another solution that many seem to recommend is to move the libraries 25/usr/lib/libcrypto.0.9.dylib, /usr/lib/libssl.0.9.dylib to a different 26directory, build and install OpenSSL and anything that depends on your 27build, then move libcrypto.0.9.dylib and libssl.0.9.dylib back to their 28original places. Note that the version numbers on those two libraries 29may differ on your machine. 30 31 32As long as Apple doesn't fix the problem with ld, this problem building 33OpenSSL will remain as is. 34 35