Building gdb from source

Daniel Jacobowitz drow@false.org
Fri Apr 7 06:39:00 GMT 2006


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



More information about the Gdb mailing list