hoard.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Using the Hoard Memory Allocator with Asterisk
  2. ==============================================
  3. 1) Install the Hoard Memory Allocator
  4. Download Hoard from http://www.hoard.org/ either via a package or the source
  5. tarball.
  6. If downloading the source, unpack the tarball and follow the instructions in
  7. the README file to build libhoard for your platform.
  8. 2) Configure asterisk
  9. Run ./configure in the root of the asterisk source directory, passing the
  10. --with-hoard option specifying the location of the libhoard shared library.
  11. For example:
  12. ./configure --with-hoard=/usr/src/hoard-371/src/
  13. Note that we don't specify the full path to libhoard.so, just the directory
  14. where it resides.
  15. 3) Enable Hoard in menuselect
  16. Run 'make menuselect' in the root of the asterisk source distribution. Under
  17. 'Compiler Flags' select the 'USE_HOARD_ALLOCATOR' option. If the option is
  18. not available (shows up with XXX next to it) this means that configure was
  19. not able to find libhoard.so. Check that the path you passed to the
  20. --with-hoard option is correct. Re-run ./configure with the correct option
  21. and then repeat step 3.
  22. 4) Make and install asterisk
  23. Run the standard build commands:
  24. # make
  25. # make install