Dmalloc

From CBLFS
Jump to navigationJump to search
Download Source: http://dmalloc.com/releases/dmalloc-5.5.2.tgz
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/Dmalloc/dmalloc-5.5.2-Makefile.in-1.patch

Introduction to Dmalloc

The debug memory allocation or dmalloc library has been designed as a drop in replacement for the system's malloc, realloc, calloc, free and other memory management routines

Project Homepage: http://dmalloc.com/

Non-Multilib

Compile the package:

patch -Np1 -i ../dmalloc-5.5.2-Makefile.in-1.patch &&
./configure --prefix=/usr --enable-shlib --enable-threads &&
make &&
make cxx

Install the package:

make install &&
make installcxx &&
ln -svf libdmalloc.so.5.5.2 /usr/lib/libdmalloc.so &&
for lib in cxx th thcxx; do
    ln -svf libdmalloc$lib.so.5.5.2 /usr/lib/libdmalloc$lib.so
done

Multilib

32Bit

Compile the package:

patch -Np1 -i ../dmalloc-5.5.2-Makefile.in-1.patch &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --enable-shlib --enable-threads &&
make &&
make cxx

Install the package:

make install &&
make installcxx &&
ln -svf libdmalloc.so.5.5.2 /usr/lib/libdmalloc.so &&
for lib in cxx th thcxx; do
    ln -svf libdmalloc$lib.so.5.5.2 /usr/lib/libdmalloc$lib.so
done

N32

Compile the package:

patch -Np1 -i ../dmalloc-5.5.2-Makefile.in-1.patch &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --enable-shlib --enable-threads &&
make &&
make cxx

Install the package:

make install &&
make installcxx &&
ln -svf libdmalloc.so.5.5.2 /usr/lib32/libdmalloc.so &&
for lib in cxx th thcxx; do
    ln -svf libdmalloc$lib.so.5.5.2 /usr/lib32/libdmalloc$lib.so
done

64Bit

Compile the package:

patch -Np1 -i ../dmalloc-5.5.2-Makefile.in-1.patch &&
CC="gcc ${BUILD64} -fPIC" CXX="g++ ${BUILD64} -fPIC" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --enable-shlib --enable-threads &&
make &&
make cxx

Install the package:

make install &&
make installcxx &&
ln -svf libdmalloc.so.5.5.2 /usr/lib64/libdmalloc.so &&
for lib in cxx th thcxx; do
    ln -svf libdmalloc$lib.so.5.5.2 /usr/lib64/libdmalloc$lib.so
done

Contents

Installed Directories: None
Installed Programs: dmalloc
Installed Libraries: libdmalloc.{a,so}, libdmalloccxx.{a, so}, libdmallocth.{a, so}. libdmallocthcxx.{a, so}

Short Descriptions

Retrieved from "?title=Dmalloc&oldid=19923"