Actually, the "bug" is really documented in the man-page for ld, so
[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 As long as Apple doesn't fix the problem with ld, this problem building
24 OpenSSL will remain as is.
25