On MacOS X, the shared library editor uses DYLD_LIBRARY_PATH
[openssl.git] / PROBLEMS
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
4 This is really a misfeature in ld, which seems to look for .dylib libraries
5 along the whole library path before it bothers looking for .a libraries.  This
6 means that -L switches won't matter unless OpenSSL is built with shared
7 library support.
8
9 The workaround may be to change the following lines in apps/Makefile.ssl and
10 test/Makefile.ssl:
11
12   LIBCRYPTO=-L.. -lcrypto
13   LIBSSL=-L.. -lssl
14
15 to:
16
17   LIBCRYPTO=../libcrypto.a
18   LIBSSL=../libssl.a
19
20 It's possible that something similar is needed for shared library support
21 as well.  That hasn't been well tested yet.
22
23
24 Another 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
26 directory, build and install OpenSSL and anything that depends on your
27 build, then move libcrypto.0.9.dylib and libssl.0.9.dylib back to their
28 original places.  Note that the version numbers on those two libraries
29 may differ on your machine.
30
31
32 As long as Apple doesn't fix the problem with ld, this problem building
33 OpenSSL will remain as is.
34