1120631SnectarThe OpenSSL  shared libraries are often installed in a directory like
2120631Snectar/usr/local/ssl/lib.
3120631Snectar
4120631SnectarIf this directory is not in a standard system path for dynamic/shared
5120631Snectarlibraries, then you will have problems linking and executing
6120631Snectarapplications that use OpenSSL libraries UNLESS:
7120631Snectar
8120631Snectar* you link with static (archive) libraries.  If you are truly
9120631Snectar  paranoid about security, you should use static libraries.
10120631Snectar* you use the GNU libtool code during linking
11120631Snectar  (http://www.gnu.org/software/libtool/libtool.html)
12120631Snectar* you use pkg-config during linking (this requires that
13120631Snectar  PKG_CONFIG_PATH includes the path to the OpenSSL shared
14120631Snectar  library directory), and make use of -R or -rpath.
15120631Snectar  (http://www.freedesktop.org/software/pkgconfig/)
16120631Snectar* you specify the system-wide link path via a command such
17120631Snectar  as crle(1) on Solaris systems.
18120631Snectar* you add the OpenSSL shared library directory to /etc/ld.so.conf
19120631Snectar  and run ldconfig(8) on Linux systems.
20120631Snectar* you define the LD_LIBRARY_PATH, LIBPATH, SHLIB_PATH (HP),
21120631Snectar  DYLD_LIBRARY_PATH (MacOS X) or PATH (Cygwin and DJGPP)
22120631Snectar  environment variable and add the OpenSSL shared library
23120631Snectar  directory to it.
24120631Snectar
25120631SnectarOne common tool to check the dynamic dependencies of an executable
26120631Snectaror dynamic library is ldd(1) on most UNIX systems.
27120631Snectar
28120631SnectarSee any operating system documentation and manpages about shared
29120631Snectarlibraries for your version of UNIX.  The following manpages may be
30120631Snectarhelpful: ld(1), ld.so(1), ld.so.1(1) [Solaris], dld.sl(1) [HP],
31120631Snectarldd(1), crle(1) [Solaris], pldd(1) [Solaris], ldconfig(8) [Linux],
32120631Snectarchatr(1) [HP].
33