asterisk/build_tools
Kevin P. Fleming 92ef8a6fe1 Address OpenSSL initialization issues when using third-party libraries.
When Asterisk is used with various third-party libraries (CURL, PostgresSQL,
many others) that have the ability themselves to use OpenSSL, it is possible
for conflicts to arise in how the OpenSSL libraries are initialized and
shutdown. This patch addresses these conflicts by 'wrapping' the important
functions from the OpenSSL libraries in a new shared library that is part
of Asterisk itself, and is loaded in such a way as to ensure that *all*
calls to these functions will be dispatched through the Asterisk wrapper
functions, not the native functions.

This new library is optional, but enabled by default. See the CHANGES file
for documentation on how to disable it.

Along the way, this patch also makes a few other minor changes:

* Changes MODULES_DIR to ASTMODDIR throughout the build system, in order to
  more closely match what is used during run-time configuration.

* Corrects some errors in the configure script where AC_CHECK_TOOLS was used
  instead of AC_PATH_PROG.

* Adds a new variable for linker flags in the build system (DYLINK), used for
  producing true shared libraries (as opposed to the dynamically loadable
  modules that the build system produces for 'regular' Asterisk modules).

* Moves the Makefile bits that handle installation and uninstallation of the
  main Asterisk binary into main/Makefile from the top-level Makefile.

* Moves a couple of useful preprocessor macros from optional_api.h to
  asterisk.h.

Review: https://reviewboard.asterisk.org/r/1006/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@353317 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2012-01-30 21:21:16 +00:00
..
cflags-devmode.xml Merged revisions 338228 via svnmerge from 2011-09-28 20:55:42 +00:00
cflags.xml Merged revisions 338228 via svnmerge from 2011-09-28 20:55:42 +00:00
embed_modules.xml Change the internal name of the menuselect options that are used to control 2011-10-14 21:37:51 +00:00
get_documentation remove empty awk pattern (//) 2009-10-28 20:50:52 +00:00
get_makeopts Merged revisions 139909 via svnmerge from 2008-08-25 21:32:10 +00:00
get_moduleinfo Merged revisions 139909 via svnmerge from 2008-08-25 21:32:10 +00:00
make_build_h Merged revisions 260801 via svnmerge from 2010-05-04 15:49:57 +00:00
make_buildopts_h Fix a few build problems on Solaris (and check for an md5 utility in 2008-11-19 00:27:45 +00:00
make_defaults_h Address OpenSSL initialization issues when using third-party libraries. 2012-01-30 21:21:16 +00:00
make_linker_eo_script give embedded modules a helping hand by backing up and restoring their global variables when they are loaded and unloaded 2007-02-22 02:36:00 +00:00
make_linker_version_script Ensure that linker version scripts (used for symbol export control) always exist. 2010-04-08 16:35:10 +00:00
make_sample_voicemail Merged revisions 299907 via svnmerge from 2010-12-29 18:24:19 +00:00
make_version Whitespace chages. 2009-03-12 01:33:04 +00:00
make_version_c Merged revisions 234699 via svnmerge from 2009-12-14 21:13:18 +00:00
menuselect-deps.in Merged revisions 298960 via svnmerge from 2010-12-18 00:08:13 +00:00
mkpkgconfig Address OpenSSL initialization issues when using third-party libraries. 2012-01-30 21:21:16 +00:00
prep_tarball Fix boo-boo in prep_tarball script. 2011-11-08 13:23:27 +00:00
sha1sum-sh Add an sha1sum-workalike for platforms which don't have it (like Mac OS X) 2010-05-18 22:49:13 +00:00