2
0

openssl-shared.txt 1.5 KB

1234567891011121314151617181920212223242526272829303132
  1. The OpenSSL shared libraries are often installed in a directory like
  2. /usr/local/ssl/lib.
  3. If this directory is not in a standard system path for dynamic/shared
  4. libraries, then you will have problems linking and executing
  5. applications that use OpenSSL libraries UNLESS:
  6. * you link with static (archive) libraries. If you are truly
  7. paranoid about security, you should use static libraries.
  8. * you use the GNU libtool code during linking
  9. (http://www.gnu.org/software/libtool/libtool.html)
  10. * you use pkg-config during linking (this requires that
  11. PKG_CONFIG_PATH includes the path to the OpenSSL shared
  12. library directory), and make use of -R or -rpath.
  13. (http://www.freedesktop.org/software/pkgconfig/)
  14. * you specify the system-wide link path via a command such
  15. as crle(1) on Solaris systems.
  16. * you add the OpenSSL shared library directory to /etc/ld.so.conf
  17. and run ldconfig(8) on Linux systems.
  18. * you define the LD_LIBRARY_PATH, LIBPATH, SHLIB_PATH (HP),
  19. DYLD_LIBRARY_PATH (MacOS X) or PATH (Cygwin and DJGPP)
  20. environment variable and add the OpenSSL shared library
  21. directory to it.
  22. One common tool to check the dynamic dependencies of an executable
  23. or dynamic library is ldd(1) on most UNIX systems.
  24. See any operating system documentation and manpages about shared
  25. libraries for your version of UNIX. The following manpages may be
  26. helpful: ld(1), ld.so(1), ld.so.1(1) [Solaris], dld.sl(1) [HP],
  27. ldd(1), crle(1) [Solaris], pldd(1) [Solaris], ldconfig(8) [Linux],
  28. chatr(1) [HP].