Difference between revisions of "Dmalloc"

From CBLFS
Jump to navigationJump to search
(Added page.)
 
(Add dmalloc patch to repo)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
|http://dmalloc.com/releases/dmalloc-${{Dmalloc-Version}}.tgz
+
|http://dmalloc.com/releases/dmalloc-{{Dmalloc-Version}}.tgz
 
|-
 
|-
 
!Download Patch:
 
!Download Patch:
|
+
|http://svn.cross-lfs.org/svn/repos/patches/Dmalloc/dmalloc-{{dmalloc-Version}}-Makefile.in-1.patch
 
|}
 
|}
  
Line 16: Line 16:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../dmalloc-${{Dmalloc-Version}}-Makefile.in-1.patch &&
+
  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.${{Dmalloc-Version}} /usr/lib/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.${{Dmalloc-Version}} /usr/lib/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-${{Dmalloc-Version}}-Makefile.in-1.patch &&
+
  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.${{Dmalloc-Version}} /usr/lib/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.${{Dmalloc-Version}} /usr/lib/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-${{Dmalloc-Version}}-Makefile.in-1.patch &&
+
  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.${{Dmalloc-Version}} /usr/lib32/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.${{Dmalloc-Version}} /usr/lib32/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-${{Dmalloc-Version}}-Makefile.in-1.patch &&
+
  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.${{Dmalloc-Version}} /usr/lib64/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.${{Dmalloc-Version}} /usr/lib64/libdmalloc$lib.so
+
     ln -svf libdmalloc$lib.so.{{Dmalloc-Version}} /usr/lib64/libdmalloc$lib.so
 
  done
 
  done
  

Latest revision as of 10:49, 21 February 2010

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"