This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Building gdb from source
- From: Daniel Jacobowitz <drow at false dot org>
- To: Bruce Dubbs <bdubbs at linuxfromscratch dot org>
- Cc: gdb at sourceware dot org
- Date: Thu, 6 Apr 2006 21:16:29 -0400
- Subject: Re: Building gdb from source
- References: <4435BB43.1030804@linuxfromscratch.org>
On Thu, Apr 06, 2006 at 08:07:15PM -0500, Bruce Dubbs wrote:
> I like to build packages from source. When I build gdb-6.4:
>
> ./configure --prefix=/usr
> make
> make install
>
> gdb's Makefile places the following files in /usr/lib:
>
> libbfd.a libbfd.la libiberty.a libopcodes.a libopcodes.la
>
> The problem is that these files already exist from binutils-2.16.1.
Binutils and GDB are maintained in the same CVS repository. In
general, you should use whichever copy of the shared libraries is
newer, but it's rarely a big deal. For all these I would just stick
with the copy from binutils.
> Is there any reason to prefer the libraries from binutils over gdb or
> vice versa? I believe this could be a problem as the binutils libraries
> include dynamic libraries that could be out of sync with the gdb static
> libraries and that the gdb .la files do not recognize the dynamic
> libraries at all.
GDB will never use the shared versions anyway; it always uses its own
copies.
--
Daniel Jacobowitz
CodeSourcery