Difference between revisions of "Dmalloc"
From CBLFS
Jump to navigationJump to searchWeibullguy (talk | contribs) (Added page.) |
Weibullguy (talk | contribs) |
||
Line 2: | Line 2: | ||
|- | |- | ||
!Download Source: | !Download Source: | ||
− | |http://dmalloc.com/releases/dmalloc- | + | |http://dmalloc.com/releases/dmalloc-{{Dmalloc-Version}}.tgz |
|- | |- | ||
!Download Patch: | !Download Patch: | ||
− | | | + | |http://cross-lfs.org/~arowland/shared_files/dmalloc-{{Dmalloc-Version}}-Makefile.in-1.patch |
|} | |} | ||
Line 16: | Line 16: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../dmalloc- | + | patch -Np1 -i ../dmalloc-{{Dmalloc-Version}}-Makefile.in-1.patch && |
./configure --prefix=/usr --enable-shlib --enable-threads && | ./configure --prefix=/usr --enable-shlib --enable-threads && | ||
make && | make && | ||
Line 25: | Line 25: | ||
make install && | make install && | ||
make installcxx && | make installcxx && | ||
− | ln -svf libdmalloc.so. | + | ln -svf libdmalloc.so.{{Dmalloc-Version}} /usr/lib/libdmalloc.so && |
for lib in cxx th thcxx; do | for lib in cxx th thcxx; do | ||
− | ln -svf libdmalloc$lib.so. | + | ln -svf libdmalloc$lib.so.{{Dmalloc-Version}} /usr/lib/libdmalloc$lib.so |
done | done | ||
Line 36: | Line 36: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../dmalloc- | + | patch -Np1 -i ../dmalloc-{{Dmalloc-Version}}-Makefile.in-1.patch && |
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --enable-shlib --enable-threads && | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --enable-shlib --enable-threads && | ||
make && | make && | ||
Line 45: | Line 45: | ||
make install && | make install && | ||
make installcxx && | make installcxx && | ||
− | ln -svf libdmalloc.so. | + | ln -svf libdmalloc.so.{{Dmalloc-Version}} /usr/lib/libdmalloc.so && |
for lib in cxx th thcxx; do | for lib in cxx th thcxx; do | ||
− | ln -svf libdmalloc$lib.so. | + | ln -svf libdmalloc$lib.so.{{Dmalloc-Version}} /usr/lib/libdmalloc$lib.so |
done | done | ||
Line 54: | Line 54: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../dmalloc- | + | patch -Np1 -i ../dmalloc-{{Dmalloc-Version}}-Makefile.in-1.patch && |
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr \ | ||
--libdir=/usr/lib32 --enable-shlib --enable-threads && | --libdir=/usr/lib32 --enable-shlib --enable-threads && | ||
Line 64: | Line 64: | ||
make install && | make install && | ||
make installcxx && | make installcxx && | ||
− | ln -svf libdmalloc.so. | + | ln -svf libdmalloc.so.{{Dmalloc-Version}} /usr/lib32/libdmalloc.so && |
for lib in cxx th thcxx; do | for lib in cxx th thcxx; do | ||
− | ln -svf libdmalloc$lib.so. | + | ln -svf libdmalloc$lib.so.{{Dmalloc-Version}} /usr/lib32/libdmalloc$lib.so |
done | done | ||
Line 73: | Line 73: | ||
Compile the package: | Compile the package: | ||
− | patch -Np1 -i ../dmalloc- | + | patch -Np1 -i ../dmalloc-{{Dmalloc-Version}}-Makefile.in-1.patch && |
CC="gcc ${BUILD64} -fPIC" CXX="g++ ${BUILD64} -fPIC" ./configure --prefix=/usr \ | CC="gcc ${BUILD64} -fPIC" CXX="g++ ${BUILD64} -fPIC" ./configure --prefix=/usr \ | ||
--libdir=/usr/lib64 --enable-shlib --enable-threads && | --libdir=/usr/lib64 --enable-shlib --enable-threads && | ||
Line 83: | Line 83: | ||
make install && | make install && | ||
make installcxx && | make installcxx && | ||
− | ln -svf libdmalloc.so. | + | ln -svf libdmalloc.so.{{Dmalloc-Version}} /usr/lib64/libdmalloc.so && |
for lib in cxx th thcxx; do | for lib in cxx th thcxx; do | ||
− | ln -svf libdmalloc$lib.so. | + | ln -svf libdmalloc$lib.so.{{Dmalloc-Version}} /usr/lib64/libdmalloc$lib.so |
done | done | ||
Revision as of 06:42, 25 October 2009
Download Source: | http://dmalloc.com/releases/dmalloc-5.5.2.tgz |
---|---|
Download Patch: | http://cross-lfs.org/~arowland/shared_files/dmalloc-5.5.2-Makefile.in-1.patch |
Contents
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} |