GDB: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
 
Epitome (talk | contribs)
Added --disable-werror to allow compatibility with current CLFS toolchain
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{| style="text-align: left; background-color: AliceBlue;"
{| style="text-align: left; background-color: AliceBlue;"
|-
|-valign="top"
!Download Source:
!Download Source:
| http://ftp.gnu.org/gnu/gdb/gdb-6.5.tar.bz2
| http://ftp.gnu.org/gnu/gdb/gdb-{{GDB-Version}}.tar.bz2
|}
|}


----
----
{{Package-Introduction|GDB allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.|http://sourceware.org/gdb}}


== Dependencies ==
== Dependencies ==
Line 13: Line 15:


== Non-Multilib ==
== Non-Multilib ==
Apply a sed substitution that will suppress the installation of libiberty.a. The version of libiberty.a that was provided by Binutils during the initial CLFS build will be retained:
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in


Compile the package:
Compile the package:


  ./configure --prefix=/usr &&
  ./configure --prefix=/usr --disable-werror &&
  make
  make


Line 26: Line 32:


=== 64Bit ===
=== 64Bit ===
Apply a sed substitution that will suppress the installation of libiberty.a. The version of libiberty.a that was provided by Binutils during the initial CLFS build will be retained:
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in


Compile the package:
Compile the package:


  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
     --libdir=/usr/lib64 &&
     --libdir=/usr/lib64 --disable-werror &&
  make
  make


Line 36: Line 46:


  make install
  make install
[[Category:Programming]]

Latest revision as of 21:50, 1 July 2009

Download Source: http://ftp.gnu.org/gnu/gdb/gdb-7.0.tar.bz2

Introduction to GDB

GDB allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.

Project Homepage: http://sourceware.org/gdb

Dependencies

Optional

Non-Multilib

Apply a sed substitution that will suppress the installation of libiberty.a. The version of libiberty.a that was provided by Binutils during the initial CLFS build will be retained:

sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in

Compile the package:

./configure --prefix=/usr --disable-werror &&
make

Install the package

make install

Multilib

64Bit

Apply a sed substitution that will suppress the installation of libiberty.a. The version of libiberty.a that was provided by Binutils during the initial CLFS build will be retained:

sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --disable-werror &&
make

Install the package

make install
Retrieved from "?title=GDB&oldid=18551"