Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* libiberty
@ 2010-01-03 22:21 Chris Sutcliffe
  2010-01-03 22:46 ` libiberty Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Sutcliffe @ 2010-01-03 22:21 UTC (permalink / raw)
  To: gdb

My apologies if this question has been answered before, but doing a
Google I couldn't find an answer...

I'm building gdb for MinGW and I was wondering if gdb needs to use
it's own libiberty?  If not, is it possible to link against the
libiberty included as part of binutils?  How would I go about doing so
assuming it is possible?

Thank you,

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libiberty
  2010-01-03 22:21 libiberty Chris Sutcliffe
@ 2010-01-03 22:46 ` Daniel Jacobowitz
  2010-01-03 23:26   ` libiberty Chris Sutcliffe
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2010-01-03 22:46 UTC (permalink / raw)
  To: Chris Sutcliffe; +Cc: gdb

On Sun, Jan 03, 2010 at 05:21:29PM -0500, Chris Sutcliffe wrote:
> I'm building gdb for MinGW and I was wondering if gdb needs to use
> it's own libiberty?  If not, is it possible to link against the
> libiberty included as part of binutils?  How would I go about doing so
> assuming it is possible?

Generally GDB needs to use its own copy.  Applications using libiberty
always include their own copy for this reason.

In practice, it may work, but you'd have to do it by hand.
The build system does not support this.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libiberty
  2010-01-03 22:46 ` libiberty Daniel Jacobowitz
@ 2010-01-03 23:26   ` Chris Sutcliffe
  2010-01-04  0:04     ` libiberty Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Sutcliffe @ 2010-01-03 23:26 UTC (permalink / raw)
  To: gdb

>> I'm building gdb for MinGW and I was wondering if gdb needs to use
>> it's own libiberty?  If not, is it possible to link against the
>> libiberty included as part of binutils?  How would I go about doing so
>> assuming it is possible?
>
> Generally GDB needs to use its own copy.  Applications using libiberty
> always include their own copy for this reason.

Fair enough, is there a way to add a prefix specifically to gdb's
libiberty (i.e. instead of installing to lib32/libiberty.a install to
lib32/gdb/libiberty.a), or perhaps add a suffix (like libiberty.gdb.a)
so as to not cause a conflict with binutils' libiberty?

Thank you,

Chris

-- 
Chris Sutcliffe
http://emergedesktop.org


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libiberty
  2010-01-03 23:26   ` libiberty Chris Sutcliffe
@ 2010-01-04  0:04     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2010-01-04  0:04 UTC (permalink / raw)
  To: Chris Sutcliffe; +Cc: gdb

On Sun, Jan 03, 2010 at 06:26:24PM -0500, Chris Sutcliffe wrote:
> Fair enough, is there a way to add a prefix specifically to gdb's
> libiberty (i.e. instead of installing to lib32/libiberty.a install to
> lib32/gdb/libiberty.a), or perhaps add a suffix (like libiberty.gdb.a)
> so as to not cause a conflict with binutils' libiberty?

Just don't install the file.  It is a static archive; it is only used to
build GDB.

-- 
Daniel Jacobowitz
CodeSourcery


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-04  0:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-03 22:21 libiberty Chris Sutcliffe
2010-01-03 22:46 ` libiberty Daniel Jacobowitz
2010-01-03 23:26   ` libiberty Chris Sutcliffe
2010-01-04  0:04     ` libiberty Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox